question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dialog disappears on orientation change

See original GitHub issue

Describe the bug In ProfileEdit screen on orientation change if the dialog is already shown, it will disappear.

To Reproduce Steps to reproduce the behavior:

  1. Go to ProfileChooser screen and create atleast 2 profiles.
  2. In ProfileChooser screen click on Administrator Controls
  3. Enter your pin and go to AdministratorControlsActivity
  4. Click Edit Profiles
  5. Select non-admin profile.
  6. Scroll and click on Profile Deletion
  7. Once the alert dialog appears, change the orientation to landscape.
  8. 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:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
prathamk22commented, Jan 3, 2021

@anandwana001 I have gone through all the onboarding instruction and filled both google forms. Can I start working on this?

0reactions
ArpitShukIacommented, Mar 20, 2021

@anandwana001 Can I work on this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found