Kaynağa Gözat

[修复] 发现页某些情况下没有加载最后一页的问题

HapeLee 11 ay önce
ebeveyn
işleme
a28af43107

+ 1 - 1
app/src/main/java/io/legado/app/ui/book/explore/ExploreShowScreen.kt

@@ -239,7 +239,7 @@ fun ExploreShowScreen(
                 derivedStateOf {
                     val totalItems = listState.layoutInfo.totalItemsCount
                     val lastVisibleIndex = listState.layoutInfo.visibleItemsInfo.lastOrNull()?.index ?: 0
-                    totalItems > 0 && lastVisibleIndex >= totalItems - 9
+                    totalItems > 0 && lastVisibleIndex >= totalItems - 5
                 }
             }