mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Splash state assignment only happened on empty library
Hopefully fixed long splash time (GH-147, GH-26)
This commit is contained in:
parent
a8e8fe01b7
commit
1720472f33
1 changed files with 3 additions and 1 deletions
|
@ -1138,7 +1138,6 @@ open class LibraryController(
|
|||
emptyList()
|
||||
},
|
||||
)
|
||||
(activity as? MainActivity)?.splashState?.ready = true
|
||||
}
|
||||
adapter.setItems(mangaMap)
|
||||
if (binding.libraryGridRecycler.recycler.translationX != 0f) {
|
||||
|
@ -1151,7 +1150,10 @@ open class LibraryController(
|
|||
}
|
||||
}
|
||||
singleCategory = presenter.categories.size <= 1
|
||||
|
||||
binding.progress.isVisible = false
|
||||
(activity as? MainActivity)?.splashState?.ready = true
|
||||
|
||||
if (!freshStart) {
|
||||
justStarted = false
|
||||
} // else binding.recyclerLayout.alpha = 1f
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue