mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-11 23:09:07 +01:00
Fixed swipe refresh not showing sometimes while browsing
This commit is contained in:
parent
caaddda040
commit
67e9d79a1a
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user