Navigation button not updating

main
Hemanth S 2020-05-24 04:57:19 +05:30
parent e59e7fbfe0
commit c923f843c0
2 changed files with 1 additions and 2 deletions

View File

@ -135,13 +135,13 @@ class MainActivity : AbsSlidingMusicPanelActivity(),
appLaunched(this)
setupToolbar()
checkUpdate()
updateTabs()
getBottomNavigationView().selectedItemId = PreferenceUtilKT.lastPage
getBottomNavigationView().setOnNavigationItemSelectedListener {
PreferenceUtilKT.lastPage = it.itemId
selectedFragment(it.itemId)
true
}
updateTabs()
}
override fun onResume() {

View File

@ -37,7 +37,6 @@ class BottomNavigationBarTinted @JvmOverloads constructor(
init {
labelVisibilityMode = PreferenceUtilKT.tabTitleMode
selectedItemId = PreferenceUtilKT.lastPage
val iconColor = ATHUtil.resolveColor(context, android.R.attr.colorControlNormal)
val accentColor = ThemeStore.accentColor(context)