There exist some dialog disappearance after screen rotation. 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 UI state of these dialogs by saving the return value of dialog.isShowing(). In this way, you can decide whether to re-open these dialogs when the phone rotation and UI recreation occur. This may improve the user experience, do you think so?
Hi, dear developers!
General information
my device: android 10
There exist some dialog disappearance after screen rotation. 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 UI state of these dialogs by saving the return value of dialog.isShowing(). In this way, you can decide whether to re-open these dialogs when the phone rotation and UI recreation occur. This may improve the user experience, do you think so?
Snapshot details
No.1
before rotation
after rotation
No.2
before rotation
after rotation