Skip to content

Instantly share code, notes, and snippets.

Avatar
💻

Tiago Araujo Tgo1014

💻
View GitHub Profile
View NavigationBottomBarSectionsStateKeeperWorkaround.kt
package jetpack.navigation.workaround
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
import androidx.navigation.NavController
import androidx.navigation.ui.setupActionBarWithNavController
import com.google.android.material.bottomnavigation.BottomNavigationView
import java.lang.ref.WeakReference