mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Show toolbarTitle depending of size (#8633)
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user