mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-16 14:49:17 +01:00
Show toolbarTitle depending of size (#8633)
This commit is contained in:
parent
f99b62a069
commit
fe6aa4358f
@ -774,14 +774,10 @@ class LibraryScreenModel(
|
||||
): LibraryToolbarTitle {
|
||||
val category = categories.getOrNull(page) ?: return LibraryToolbarTitle(defaultTitle)
|
||||
val categoryName = category.let {
|
||||
if (it.isSystemCategory) {
|
||||
defaultCategoryTitle
|
||||
} else {
|
||||
it.name
|
||||
}
|
||||
if (it.isSystemCategory) defaultCategoryTitle else it.name
|
||||
}
|
||||
|
||||
val title = if (showCategoryTabs) defaultTitle else categoryName
|
||||
val title = if (showCategoryTabs && categories.size <= 1) categoryName else defaultTitle
|
||||
val count = when {
|
||||
!showMangaCount -> null
|
||||
!showCategoryTabs -> getMangaCountForCategory(category)
|
||||
|
Loading…
Reference in New Issue
Block a user