[修复] 发现页某些情况下没有加载最后一页的问题
This commit is contained in:
1 file changed
+1
-1
@@ -239,7 +239,7 @@ fun ExploreShowScreen(
|
|||||||
derivedStateOf {
|
derivedStateOf {
|
||||||
val totalItems = listState.layoutInfo.totalItemsCount
|
val totalItems = listState.layoutInfo.totalItemsCount
|
||||||
val lastVisibleIndex = listState.layoutInfo.visibleItemsInfo.lastOrNull()?.index ?: 0
|
val lastVisibleIndex = listState.layoutInfo.visibleItemsInfo.lastOrNull()?.index ?: 0
|
||||||
totalItems > 0 && lastVisibleIndex >= totalItems - 9
|
totalItems > 0 && lastVisibleIndex >= totalItems - 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user