architecture-components-samples icon indicating copy to clipboard operation
architecture-components-samples copied to clipboard

[BUG] NavigationAdvancedSample - Change default item of bottom navigation

Open RezaKardoost opened this issue 4 years ago • 2 comments

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]:

device-2020-07-15-001937

RezaKardoost avatar Jul 14 '20 19:07 RezaKardoost

here I created a pull request #883

mostafa-hz avatar Jul 26 '20 12:07 mostafa-hz

here I created a pull request #883

thanks🙏🏻 it works.

RezaKardoost avatar Jul 26 '20 18:07 RezaKardoost