Skip to content

Project demonstrating bug when displaying a DialogFragment from a popup menu

License

Notifications You must be signed in to change notification settings

androidmoney/Menu-DialogFragment-Test

Repository files navigation

Menu-DialogFragment-Test

Project demonstrating bug when displaying a DialogFragment from a popup menu.

If displaying the Dialog Fragment using the on-screen button, pausing/resuming the app works as expected.

But if the dialog fragment is displayed via the Menu Item (must be a pop-up menu), the dialog fragment disappears after a resume.

The dialog can be mde to "stick" if you wrap the display of the fragment into a Handler set to about 300ms delay. Anything less, including no delay, still fails.

        new Handler().postDelayed(new Runnable()
        {
            @Override
            public void run()
            {
                showDialogFragment();
            }
        }, 300);

About

Project demonstrating bug when displaying a DialogFragment from a popup menu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published