mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 15:01:52 +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) {
|
override fun onActivityResumed(activity: Activity) {
|
||||||
super.onActivityResumed(activity)
|
super.onActivityResumed(activity)
|
||||||
if (observeLater && !::presenter.isInitialized) {
|
if (observeLater && ::presenter.isInitialized) {
|
||||||
presenter.getLibrary()
|
presenter.getLibrary()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -258,12 +258,12 @@ open class LibraryController(
|
|||||||
override fun onActivityPaused(activity: Activity) {
|
override fun onActivityPaused(activity: Activity) {
|
||||||
super.onActivityPaused(activity)
|
super.onActivityPaused(activity)
|
||||||
observeLater = true
|
observeLater = true
|
||||||
if (!::presenter.isInitialized)
|
if (::presenter.isInitialized)
|
||||||
presenter.onDestroy()
|
presenter.onDestroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
if (!::presenter.isInitialized)
|
if (::presenter.isInitialized)
|
||||||
presenter.onDestroy()
|
presenter.onDestroy()
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user