mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-24 21:58:34 +03:00
rename anime tab to "library" when manga is disabled
This commit is contained in:
parent
45d2af0173
commit
b8f1dcedff
2 changed files with 6 additions and 2 deletions
|
@ -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) }
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue