mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Fix lint issues
This commit is contained in:
+4
-2
@@ -177,9 +177,11 @@ fun TimelineView(
|
|||||||
onClearFocusRequestState = ::clearFocusRequestState
|
onClearFocusRequestState = ::clearFocusRequestState
|
||||||
)
|
)
|
||||||
|
|
||||||
val isCloseToStartOfLoadedTimeline by remember { derivedStateOf {
|
val isCloseToStartOfLoadedTimeline by remember {
|
||||||
|
derivedStateOf {
|
||||||
lazyListState.firstVisibleItemIndex + lazyListState.layoutInfo.visibleItemsInfo.size >= lazyListState.layoutInfo.totalItemsCount - 10
|
lazyListState.firstVisibleItemIndex + lazyListState.layoutInfo.visibleItemsInfo.size >= lazyListState.layoutInfo.totalItemsCount - 10
|
||||||
} }
|
}
|
||||||
|
}
|
||||||
LaunchedEffect(isCloseToStartOfLoadedTimeline) {
|
LaunchedEffect(isCloseToStartOfLoadedTimeline) {
|
||||||
// Only back paginate when we're close to the start of the loaded timeline items and the user is actively scrolling
|
// Only back paginate when we're close to the start of the loaded timeline items and the user is actively scrolling
|
||||||
if (lazyListState.isScrollInProgress && isCloseToStartOfLoadedTimeline) {
|
if (lazyListState.isScrollInProgress && isCloseToStartOfLoadedTimeline) {
|
||||||
|
|||||||
Reference in New Issue
Block a user