瀏覽代碼

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

Make sure the loading view is hidden before updating the offset.
Ivan Iskandar 3 年之前
父節點
當前提交
18b5250ed1
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt

+ 2 - 0
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
                 }
             }