So I\'ve created a DialogFragment that is shown as a dialog via this technique
Now that it\'s launched and upon a user interaction within this popup I want to slide in a
Display a DialogFragment with commitAllowingStateLoss()
The DialogFragment.show(FragmentManager manager, String tag) doesn’t have an option to show the dialog while allowing state-loss. It’s a bit strange and inconsistent, because there is a DialogFragment.dismissAllowingStateLoss().
But you can always commit the DialogFragment transaction manually, or create a helper method like this:
public static void showDialogAllowingStateLoss(FragmentManager fragmentManager, DialogFragment dialogFragment, String tag) {
FragmentTransaction ft = fragmentManager.beginTransaction();
ft.add(dialogFragment, tag);
ft.commitAllowingStateLoss();
}