Navigation button not updating
This commit is contained in:
parent
e59e7fbfe0
commit
c923f843c0
2 changed files with 1 additions and 2 deletions
|
@ -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() {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue