diff options
author | Jeff Sharkey <jsharkey@google.com> | 2015-08-14 01:18:18 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-08-14 01:18:18 +0000 |
commit | cfcf6af915bee878bdaea04f48592bbbe506ad26 (patch) | |
tree | 1d675f7f6d327fb1a11cefec74282336fe2303bf | |
parent | 37dd5240ad54494e028d6b2973729f5cb40ccad9 (diff) | |
parent | 063f850060bb28bc9984c352c0cbf8f13a00789d (diff) | |
download | frameworks_base-cfcf6af915bee878bdaea04f48592bbbe506ad26.zip frameworks_base-cfcf6af915bee878bdaea04f48592bbbe506ad26.tar.gz frameworks_base-cfcf6af915bee878bdaea04f48592bbbe506ad26.tar.bz2 |
Merge "Method to show DialogFragment allowing state loss." into mnc-dev
-rw-r--r-- | core/java/android/app/DialogFragment.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/app/DialogFragment.java b/core/java/android/app/DialogFragment.java index 2fb8cc2..9caf752 100644 --- a/core/java/android/app/DialogFragment.java +++ b/core/java/android/app/DialogFragment.java @@ -230,6 +230,15 @@ public class DialogFragment extends Fragment 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 * and then committing the transaction. |