diff --git a/Android/app/src/main/kotlin/fire/side/Main.kt b/Android/app/src/main/kotlin/fire/side/Main.kt index 89467c1..5c40fc4 100644 --- a/Android/app/src/main/kotlin/fire/side/Main.kt +++ b/Android/app/src/main/kotlin/fire/side/Main.kt @@ -15,6 +15,7 @@ import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.Box import androidx.compose.runtime.Composable +import androidx.compose.runtime.SideEffect import androidx.compose.runtime.saveable.rememberSaveableStateHolder import androidx.compose.ui.Alignment @@ -54,6 +55,7 @@ open class MainActivity: AppCompatActivity { val saveableStateHolder = rememberSaveableStateHolder() saveableStateHolder.SaveableStateProvider(true) { PresentationRootView(ComposeContext()) + SideEffect { saveableStateHolder.removeState(true) } } }