Update LibraryController.kt

This commit is contained in:
Jay 2020-02-23 02:50:37 -08:00
parent 4e922eff9f
commit 97e92d0a3d

View File

@ -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()
}