KeyPass icon indicating copy to clipboard operation
KeyPass copied to clipboard

App resets on orientation change

Open nicolarevelant opened this issue 1 year ago • 2 comments

Problem: when I perform this sequence of events the app resets:

  1. Enter the password
  2. Touch confirm button
  3. Rotate the device twice

or (if it's the first time):

  1. Create new password
  2. Touch confirm button
  3. Re-enter your password
  4. Touch confirm button
  5. Rotate the device twice

Possible solution:

This problem could be due to the "org.reduxkotlin:redux-kotlin-compose-jvm" library because it uses remember instead of rememberSaveable to store the app state (e.g. KeyPassBottomBar.kt:27), remember() does not store data using the saved instance state mechanism, so please consider not using that library and use the official navigation library and rememberSaveable for app state.

Screenshots:

Version:

1.4.29 (1429) - not fixed in 1.4.30

nicolarevelant avatar Sep 25 '24 07:09 nicolarevelant

Thanks for submitting your first issue, We appreciate your input and will review it soon.

github-actions[bot] avatar Sep 25 '24 07:09 github-actions[bot]

Thank you for raising this issue, would you like to work on this issue?

yogeshpaliyal avatar Sep 25 '24 14:09 yogeshpaliyal