Dialog disappears on orientation change
See original GitHub issueDescribe the bug
In ProfileEdit
screen on orientation change if the dialog is already shown, it will disappear.
To Reproduce Steps to reproduce the behavior:
- Go to ProfileChooser screen and create atleast 2 profiles.
- In
ProfileChooser
screen click onAdministrator Controls
- Enter your pin and go to
AdministratorControlsActivity
- Click
Edit Profiles
- Select
non-admin
profile. - Scroll and click on
Profile Deletion
- Once the alert dialog appears, change the orientation to landscape.
- Notice that the alert dialog disappears.
Expected behavior Alert dialog should persist on orientation change. Also add test for the same in respective file.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Dialog box disappears during orientation change in fragment
Try to use DialogFragment instead. It restarts after orientation change. You need to extend this class as shown on documentation, and use it...
Read more >Dialogs are disappearing after screen rotation. · Issue #3612
Problem description Displayed dialogs are disappearing after screen ... Used Dialog Fragment to retain dialogs on Orientation Changes #3662.
Read more >DialogFragment dismissed on orientation change when ...
When using the compatiblity library a DialogFragment which calls setRetainInstance(true) is dismissed on an orientation change. STEPS TO REPRODCE
Read more >AsyncTask, AlertDialog, screen orientation changes. Why ...
I'm pretty sure dialogs do not disappear. I have a dialog that gets called in an asynctask and its stays there upon rotation....
Read more >Handling Orientation Changes in Android | by Ankit Sinhal
To lock the screen orientation change of any screen (activity) of your android application makes your activity display only in one mode i.e....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@anandwana001 I have gone through all the onboarding instruction and filled both google forms. Can I start working on this?
@anandwana001 Can I work on this?