Fix crash from dismissing after pause
Change-Id: Ic9f655bff5aec5678d975389bc1f391b8d608099 Fixes: 29977187
This commit is contained in:
@@ -519,7 +519,7 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF
|
|||||||
// To be able to dismiss dialog at that time, don't check
|
// To be able to dismiss dialog at that time, don't check
|
||||||
// mDialogFragment.isVisible().
|
// mDialogFragment.isVisible().
|
||||||
if (mDialogFragment != null && mDialogFragment.getDialogId() == dialogId) {
|
if (mDialogFragment != null && mDialogFragment.getDialogId() == dialogId) {
|
||||||
mDialogFragment.dismiss();
|
mDialogFragment.dismissAllowingStateLoss();
|
||||||
}
|
}
|
||||||
mDialogFragment = null;
|
mDialogFragment = null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user