-
Notifications
You must be signed in to change notification settings - Fork 129
Data loss errors #1216
Comments
So this is odd. I can't reproduce on my phone (Galaxy S6). I'm running a quite old version of Android, though. Maybe the EditText behavior changed between versions and needs to be saved explicitly now? If you'd like to experiment with fixing it and send a PR, it should be pretty isolated to AddTask.kt. |
Thanks for your reply! video of loss error: error.video.mp4 |
My phone is still on Android 7.0 😅 |
You would think that screen rotation is simple, but being Android of course it's not. Screen rotation within the New task activity is indeed not handled properly. |
Hi, developers!
general information
the unsaved text will lose after screen rotation, which may reduce user experience (expecially when I have entried lots of text). However, I think that screen rotation shouldn't do damange to the UI state. The re-created UI should be the same as before rotation, Right?
I think it is not hard to save the editable text to Bundle in
onPause()
(oronSaveInstanceState()
) before destroy, and then useedittext.setText()
to restore the text.This may improve the user experience, do you think so?
snapshot details
before rotation
after rotation
The text was updated successfully, but these errors were encountered: