mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-02-02 16:52:34 +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)
|
LibraryUpdateService.setListener(this)
|
||||||
binding.recyclerCover.isClickable = false
|
binding.recyclerCover.isClickable = false
|
||||||
binding.recyclerCover.isFocusable = false
|
binding.recyclerCover.isFocusable = false
|
||||||
|
singleCategory = presenter.categories.size <= 1
|
||||||
showDropdown()
|
showDropdown()
|
||||||
} else {
|
} else {
|
||||||
updateFilterSheetY()
|
updateFilterSheetY()
|
||||||
|
@ -100,6 +100,9 @@ class LibraryPresenter(
|
|||||||
|
|
||||||
/** Get favorited manga for library and sort and filter it */
|
/** Get favorited manga for library and sort and filter it */
|
||||||
fun getLibrary() {
|
fun getLibrary() {
|
||||||
|
if (categories.isEmpty()) {
|
||||||
|
categories = lastCategories ?: db.getCategories().executeAsBlocking().toMutableList()
|
||||||
|
}
|
||||||
scope.launch {
|
scope.launch {
|
||||||
val library = withContext(Dispatchers.IO) { getLibraryFromDB() }
|
val library = withContext(Dispatchers.IO) { getLibraryFromDB() }
|
||||||
library.apply {
|
library.apply {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user