mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 20:51:47 +01:00
Presenter is now responsible for the first getLIbrary call
This commit is contained in:
parent
1c30445e68
commit
28f222a5e6
@ -840,7 +840,9 @@ class LibraryController(
|
||||
super.onChangeStarted(handler, type)
|
||||
if (type.isEnter) {
|
||||
binding.filterBottomSheet.filterBottomSheet.isVisible = true
|
||||
presenter.getLibrary()
|
||||
if (type == ControllerChangeType.POP_ENTER) {
|
||||
presenter.getLibrary()
|
||||
}
|
||||
DownloadService.callListeners()
|
||||
LibraryUpdateService.setListener(this)
|
||||
binding.recyclerCover.isClickable = false
|
||||
|
@ -93,8 +93,8 @@ class LibraryPresenter(
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
libraryItems = lastLibraryItems ?: return
|
||||
categories = lastCategories ?: return
|
||||
lastLibraryItems?.let { libraryItems = it }
|
||||
lastCategories?.let { categories = it }
|
||||
lastCategories = null
|
||||
lastLibraryItems = null
|
||||
getLibrary()
|
||||
|
Loading…
Reference in New Issue
Block a user