am 4efd3f26: am d28991a5: am b6f5bcd0: am cfcf6af9: Merge "Method to show DialogFragment allowing state loss." into mnc-dev
* commit '4efd3f26ac515f85adde2979ec1d8d68218fc470': Method to show DialogFragment allowing state loss.
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user