fix(android): work around weird scroll issue with saved posts

This commit is contained in:
Harsh Shandilya 2024-05-30 13:07:51 +05:30
parent 535624bf22
commit a791588423

View file

@ -145,9 +145,7 @@ fun LobstersPostsScreen(
icon = Icons.Outlined.FavoriteBorder,
selectedIcon = Icons.Filled.Favorite,
) {
coroutineScope.launch {
if (savedPosts.isNotEmpty()) savedListState.animateScrollToItem(index = 0)
}
coroutineScope.launch { if (savedPosts.isNotEmpty()) savedListState.scrollToItem(0) }
},
)