mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 00:31:48 +01:00
Update LibraryController.kt
This commit is contained in:
parent
4e922eff9f
commit
97e92d0a3d
@ -250,7 +250,7 @@ open class LibraryController(
|
||||
|
||||
override fun onActivityResumed(activity: Activity) {
|
||||
super.onActivityResumed(activity)
|
||||
if (observeLater && !::presenter.isInitialized) {
|
||||
if (observeLater && ::presenter.isInitialized) {
|
||||
presenter.getLibrary()
|
||||
}
|
||||
}
|
||||
@ -258,12 +258,12 @@ open class LibraryController(
|
||||
override fun onActivityPaused(activity: Activity) {
|
||||
super.onActivityPaused(activity)
|
||||
observeLater = true
|
||||
if (!::presenter.isInitialized)
|
||||
if (::presenter.isInitialized)
|
||||
presenter.onDestroy()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
if (!::presenter.isInitialized)
|
||||
if (::presenter.isInitialized)
|
||||
presenter.onDestroy()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user