From 18b5250ed1067423f2c4bb0955f14350697afc5b Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Wed, 1 Sep 2021 04:49:57 +0700 Subject: [PATCH] Fix MangaController's loading view initial position (#5827) Make sure the loading view is hidden before updating the offset. --- .../main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt index 93c47dd15..dc2b1c333 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt @@ -290,7 +290,9 @@ class MangaController : val topStatusBarInset = WindowInsetsCompat.toWindowInsetsCompat(windowInsets) .getInsets(WindowInsetsCompat.Type.statusBars()) .top + swipeRefresh.isRefreshing = false swipeRefresh.setProgressViewEndTarget(false, getMainAppBarHeight() + topStatusBarInset) + updateRefreshing() windowInsets } }