diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/TachiyomiBottomNavigationView.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/TachiyomiBottomNavigationView.kt index 785e83ea0..b068b047f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/TachiyomiBottomNavigationView.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/TachiyomiBottomNavigationView.kt @@ -37,9 +37,8 @@ class TachiyomiBottomNavigationView @JvmOverloads constructor( defStyleRes: Int = R.style.Widget_Design_BottomNavigationView, ) : BottomNavigationView(context, attrs, defStyleAttr, defStyleRes) { - private val libraryPreferences: LibraryPreferences = Injekt.get() - override fun inflateMenu(resId: Int) { + val libraryPreferences: LibraryPreferences = Injekt.get() when (libraryPreferences.bottomNavStyle().get()) { 1 -> super.inflateMenu(R.menu.main_nav_history) 2 -> super.inflateMenu(R.menu.main_nav_no_manga) diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/TachiyomiNavigationRailView.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/TachiyomiNavigationRailView.kt index f4179be36..263b9160e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/TachiyomiNavigationRailView.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/TachiyomiNavigationRailView.kt @@ -13,9 +13,8 @@ class TachiyomiNavigationRailView @JvmOverloads constructor( attrs: AttributeSet? = null, ) : NavigationRailView(context, attrs) { - private val libraryPreferences: LibraryPreferences = Injekt.get() - override fun inflateMenu(resId: Int) { + val libraryPreferences: LibraryPreferences = Injekt.get() when (libraryPreferences.bottomNavStyle().get()) { 1 -> super.inflateMenu(R.menu.main_nav_history) 2 -> super.inflateMenu(R.menu.main_nav_no_manga)