Hoping someone can assist me with a bug I’m having...
# compose
c
Hoping someone can assist me with a bug I’m having. It only occurs on Android 12 and 13. I have an Activity that contains a ComposeView, whose content is a Dialog. The Activity owns a state holder, in which there is a MutableState that is used to determine whether to show the Dialog. My Activity occasionally gets recreated (by calling
recreate()
). When this happens, the composable stops responding to the state changes and the dialog never appears. I have confirmed that the ComposeView is still displayed after the Activity is recreated. If I close the app and reopen it, it behaves as normal.