Skip to content

Commit

Permalink
save listState when timeline list is top
Browse files Browse the repository at this point in the history
  • Loading branch information
seiko committed Dec 30, 2021
1 parent 6dcadeb commit ec97ee5
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ fun TimelineComponent(
.distinctUntilChanged()
.filter { !it }
.filter { listState.layoutInfo.totalItemsCount != 0 }
.filter { listState.firstVisibleItemIndex != 0 && listState.firstVisibleItemScrollOffset != 0 }
.collect {
viewModel.saveScrollState(
TimelineScrollState(
Expand Down

0 comments on commit ec97ee5

Please sign in to comment.