修复 ExploreShowScreen 加载时出现两个加载指示器的问题
This commit is contained in:
1 file changed
+2
-2
@@ -327,7 +327,7 @@ fun ExploreShowScreen(
|
|||||||
|
|
||||||
item(span = { GridItemSpan(maxLineSpan) }) {
|
item(span = { GridItemSpan(maxLineSpan) }) {
|
||||||
LoadMoreFooter(
|
LoadMoreFooter(
|
||||||
isLoading = state.isLoading,
|
isLoading = state.isLoading && !state.isRefreshing,
|
||||||
errorMsg = state.errorMsg,
|
errorMsg = state.errorMsg,
|
||||||
isEnd = state.isEnd,
|
isEnd = state.isEnd,
|
||||||
onRetry = { viewModel.onIntent(ExploreShowIntent.LoadMore) }
|
onRetry = { viewModel.onIntent(ExploreShowIntent.LoadMore) }
|
||||||
@@ -377,7 +377,7 @@ fun ExploreShowScreen(
|
|||||||
|
|
||||||
item {
|
item {
|
||||||
LoadMoreFooter(
|
LoadMoreFooter(
|
||||||
isLoading = state.isLoading,
|
isLoading = state.isLoading && !state.isRefreshing,
|
||||||
errorMsg = state.errorMsg,
|
errorMsg = state.errorMsg,
|
||||||
isEnd = state.isEnd,
|
isEnd = state.isEnd,
|
||||||
onRetry = { viewModel.onIntent(ExploreShowIntent.LoadMore) }
|
onRetry = { viewModel.onIntent(ExploreShowIntent.LoadMore) }
|
||||||
|
|||||||
Reference in new issue
Block a user