Loading core/java/android/app/DialogFragment.java +9 −0 Original line number Original line Diff line number Diff line Loading @@ -230,6 +230,15 @@ public class DialogFragment extends Fragment ft.commit(); ft.commit(); } } /** {@hide} */ public void showAllowingStateLoss(FragmentManager manager, String tag) { mDismissed = false; mShownByMe = true; FragmentTransaction ft = manager.beginTransaction(); ft.add(this, tag); ft.commitAllowingStateLoss(); } /** /** * Display the dialog, adding the fragment using an existing transaction * Display the dialog, adding the fragment using an existing transaction * and then committing the transaction. * and then committing the transaction. Loading Loading
core/java/android/app/DialogFragment.java +9 −0 Original line number Original line Diff line number Diff line Loading @@ -230,6 +230,15 @@ public class DialogFragment extends Fragment ft.commit(); ft.commit(); } } /** {@hide} */ public void showAllowingStateLoss(FragmentManager manager, String tag) { mDismissed = false; mShownByMe = true; FragmentTransaction ft = manager.beginTransaction(); ft.add(this, tag); ft.commitAllowingStateLoss(); } /** /** * Display the dialog, adding the fragment using an existing transaction * Display the dialog, adding the fragment using an existing transaction * and then committing the transaction. * and then committing the transaction. Loading