am cfcf6af9: Merge "Method to show DialogFragment allowing state loss." into mnc-dev

* commit 'cfcf6af915bee878bdaea04f48592bbbe506ad26':
  Method to show DialogFragment allowing state loss.
This commit is contained in:
Jeff Sharkey
2015-08-14 01:24:44 +00:00
committed by Android Git Automerger

View File

@@ -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.