rename anime tab to "library" when manga is disabled

This commit is contained in:
jmir1 2023-01-08 20:21:01 +01:00
parent 45d2af0173
commit b8f1dcedff
2 changed files with 6 additions and 2 deletions

View file

@ -526,7 +526,11 @@ class AnimelibPresenter(
fun getToolbarTitle(): androidx.compose.runtime.State<AnimelibToolbarTitle> {
val category = categories.getOrNull(activeCategory)
val defaultTitle = stringResource(R.string.label_animelib)
val defaultTitle = if (libraryPreferences.bottomNavStyle().get() == 2) {
stringResource(R.string.label_library)
} else {
stringResource(R.string.label_animelib)
}
val categoryName = category?.visualName ?: defaultTitle
val default = remember { AnimelibToolbarTitle(defaultTitle) }

View file

@ -3,7 +3,7 @@
<item
android:id="@+id/nav_animelib"
android:icon="@drawable/ic_animelibrary_selector_24dp"
android:title="@string/label_animelib" />
android:title="@string/label_library" />
<item
android:id="@+id/nav_updates"
android:icon="@drawable/ic_updates_selector_24dp"