Skip to content

Commit

Permalink
remeber feed pages position
Browse files Browse the repository at this point in the history
  • Loading branch information
aeghn authored and mbestavros committed Jan 12, 2024
1 parent addfee3 commit c9b5e06
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package me.ash.reader.ui.page.home.feeds

import android.util.Log
import androidx.activity.compose.BackHandler
import androidx.compose.animation.core.*
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.KeyboardArrowRight
import androidx.compose.material.icons.outlined.Settings
Expand Down Expand Up @@ -81,6 +83,7 @@ fun FeedsPage(
val newVersion = LocalNewVersionNumber.current
val skipVersion = LocalSkipVersionNumber.current
val currentVersion = remember { context.getCurrentVersion() }
val listState = if (groupWithFeedList.isNotEmpty()) feedsUiState.listState else rememberLazyListState()

val owner = LocalLifecycleOwner.current
var isSyncing by remember { mutableStateOf(false) }
Expand Down Expand Up @@ -157,7 +160,9 @@ fun FeedsPage(
}
},
content = {
LazyColumn {
LazyColumn (
state = listState
) {
item {
DisplayText(
modifier = Modifier
Expand Down

0 comments on commit c9b5e06

Please sign in to comment.