mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 19:25:10 +01:00
Fix library dropdown arrow showing for a split second for those with 0 categories
But please use categories anyway
This commit is contained in:
parent
2c4ddcd555
commit
93d2145c43
@ -783,6 +783,7 @@ class LibraryController(
|
||||
LibraryUpdateService.setListener(this)
|
||||
binding.recyclerCover.isClickable = false
|
||||
binding.recyclerCover.isFocusable = false
|
||||
singleCategory = presenter.categories.size <= 1
|
||||
showDropdown()
|
||||
} else {
|
||||
updateFilterSheetY()
|
||||
|
@ -100,6 +100,9 @@ class LibraryPresenter(
|
||||
|
||||
/** Get favorited manga for library and sort and filter it */
|
||||
fun getLibrary() {
|
||||
if (categories.isEmpty()) {
|
||||
categories = lastCategories ?: db.getCategories().executeAsBlocking().toMutableList()
|
||||
}
|
||||
scope.launch {
|
||||
val library = withContext(Dispatchers.IO) { getLibraryFromDB() }
|
||||
library.apply {
|
||||
|
Loading…
Reference in New Issue
Block a user