Fix MangaController's loading view initial position (#5827)

Make sure the loading view is hidden before updating the offset.
This commit is contained in:
Ivan Iskandar 2021-09-01 04:49:57 +07:00 committed by GitHub
parent f683f21ee2
commit 18b5250ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,7 +290,9 @@ class MangaController :
val topStatusBarInset = WindowInsetsCompat.toWindowInsetsCompat(windowInsets) val topStatusBarInset = WindowInsetsCompat.toWindowInsetsCompat(windowInsets)
.getInsets(WindowInsetsCompat.Type.statusBars()) .getInsets(WindowInsetsCompat.Type.statusBars())
.top .top
swipeRefresh.isRefreshing = false
swipeRefresh.setProgressViewEndTarget(false, getMainAppBarHeight() + topStatusBarInset) swipeRefresh.setProgressViewEndTarget(false, getMainAppBarHeight() + topStatusBarInset)
updateRefreshing()
windowInsets windowInsets
} }
} }