architecture-components-samples
architecture-components-samples copied to clipboard
[BUG] NavigationAdvancedSample - Change default item of bottom navigation
I added second line to change default item of bottom navigation (Leaderboard).
if (savedInstanceState == null) {
findViewById<BottomNavigationView>(R.id.bottom_nav).selectedItemId = R.id.list //added this line
setupBottomNavigationBar()
}
it works but there is a bug when selecting bottom navigation items. for example when I select this items respectively [Home -> Register -> Home]:
here I created a pull request #883
here I created a pull request #883
thanks🙏🏻 it works.