Skip to content

Commit

Permalink
Fix #1156 搜索有时候会没有进度条
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Nov 9, 2024
1 parent 57c1ab9 commit b0488c7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.compose.ui.zIndex
import androidx.paging.LoadState
import androidx.paging.compose.LazyPagingItems
import me.him188.ani.app.platform.currentAniBuildConfig
import me.him188.ani.app.ui.foundation.icons.Passkey_24dp_E8EAED_FILL0_wght400_GRAD0_opsz24
Expand Down Expand Up @@ -115,7 +116,7 @@ fun <T : Any> SearchResultLazyVerticalStaggeredGrid(
}

FastLinearProgressIndicator(
items.isLoadingFirstPage,
items.isLoadingFirstPage || items.loadState.refresh is LoadState.Loading,
Modifier.zIndex(2f).align(Alignment.TopStart).fillMaxWidth().padding(vertical = 4.dp),
minimumDurationMillis = 300,
)
Expand Down

0 comments on commit b0488c7

Please sign in to comment.