mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Show toolbarTitle depending of size (#8633)
This commit is contained in:
parent
f99b62a069
commit
fe6aa4358f
1 changed files with 2 additions and 6 deletions
|
@ -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 a new issue