diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt index 30d9649c01..45079a00b5 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt @@ -211,8 +211,6 @@ class MangaDetailsController : BaseController, presenter.onCreate() swipe_refresh.isRefreshing = presenter.isLoading - if (manga?.initialized != true) - swipe_refresh.post { swipe_refresh.isRefreshing = true } swipe_refresh.setOnRefreshListener { presenter.refreshAll() } } @@ -551,6 +549,16 @@ class MangaDetailsController : BaseController, } } + override fun onChangeEnded( + changeHandler: ControllerChangeHandler, + type: ControllerChangeType + ) { + super.onChangeEnded(changeHandler, type) + if (type == ControllerChangeType.PUSH_ENTER) { + swipe_refresh?.isRefreshing = presenter.isLoading + } + } + override fun handleBack(): Boolean { if (manga_cover_full?.visibility == View.VISIBLE) { manga_cover_full?.performClick()