summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-08-13 16:57:29 -0700
committerJeff Sharkey <jsharkey@android.com>2015-08-13 16:57:29 -0700
commit063f850060bb28bc9984c352c0cbf8f13a00789d (patch)
tree334681e76fd885602c0a760bed3009cac2115a1e /core
parent9d14206594c0b50a539ee73e37804542694937d6 (diff)
downloadframeworks_base-063f850060bb28bc9984c352c0cbf8f13a00789d.zip
frameworks_base-063f850060bb28bc9984c352c0cbf8f13a00789d.tar.gz
frameworks_base-063f850060bb28bc9984c352c0cbf8f13a00789d.tar.bz2
Method to show DialogFragment allowing state loss.
Same as show(), but allowing state loss. Bug: 22867250 Change-Id: Ib779d8a3febc70ad47a9c1a9099d858707bad733
Diffstat (limited to 'core')
-rw-r--r--core/java/android/app/DialogFragment.java9
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.