mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-09-11 09:13:25 +02: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)
|
super.onChangeStarted(handler, type)
|
||||||
if (type.isEnter) {
|
if (type.isEnter) {
|
||||||
binding.filterBottomSheet.filterBottomSheet.isVisible = true
|
binding.filterBottomSheet.filterBottomSheet.isVisible = true
|
||||||
|
if (type == ControllerChangeType.POP_ENTER) {
|
||||||
presenter.getLibrary()
|
presenter.getLibrary()
|
||||||
|
}
|
||||||
DownloadService.callListeners()
|
DownloadService.callListeners()
|
||||||
LibraryUpdateService.setListener(this)
|
LibraryUpdateService.setListener(this)
|
||||||
binding.recyclerCover.isClickable = false
|
binding.recyclerCover.isClickable = false
|
||||||
|
@ -93,8 +93,8 @@ class LibraryPresenter(
|
|||||||
|
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
libraryItems = lastLibraryItems ?: return
|
lastLibraryItems?.let { libraryItems = it }
|
||||||
categories = lastCategories ?: return
|
lastCategories?.let { categories = it }
|
||||||
lastCategories = null
|
lastCategories = null
|
||||||
lastLibraryItems = null
|
lastLibraryItems = null
|
||||||
getLibrary()
|
getLibrary()
|
||||||
|
Loading…
Reference in New Issue
Block a user