File tree Expand file tree Collapse file tree
solution/app/src/main/java/com/example/mountainmarkers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import androidx.compose.runtime.CompositionLocalProvider
2525import androidx.compose.runtime.collectAsState
2626import androidx.compose.runtime.getValue
2727import androidx.compose.runtime.mutableStateOf
28- import androidx.compose.runtime.remember
28+ import androidx.compose.runtime.saveable.rememberSaveable
2929import androidx.compose.runtime.setValue
3030import androidx.compose.ui.Modifier
3131import androidx.compose.ui.platform.LocalConfiguration
@@ -69,7 +69,7 @@ class MainActivity : ComponentActivity() {
6969 dynamicColor = false
7070 ) {
7171 // Remember the type of marker we want to show
72- var selectedMarkerType by remember {
72+ var selectedMarkerType by rememberSaveable {
7373 mutableStateOf(MarkerType .Basic )
7474 }
7575
You can’t perform that action at this time.
0 commit comments