diff --git a/app/src/main/java/code/name/monkey/retromusic/activities/MainActivity.kt b/app/src/main/java/code/name/monkey/retromusic/activities/MainActivity.kt index b53bbbd8..34be7380 100644 --- a/app/src/main/java/code/name/monkey/retromusic/activities/MainActivity.kt +++ b/app/src/main/java/code/name/monkey/retromusic/activities/MainActivity.kt @@ -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() { diff --git a/app/src/main/java/code/name/monkey/retromusic/views/BottomNavigationBarTinted.kt b/app/src/main/java/code/name/monkey/retromusic/views/BottomNavigationBarTinted.kt index 32cdf55e..314e089e 100644 --- a/app/src/main/java/code/name/monkey/retromusic/views/BottomNavigationBarTinted.kt +++ b/app/src/main/java/code/name/monkey/retromusic/views/BottomNavigationBarTinted.kt @@ -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)