Fix settings crash during factory reset.
If you close and then launch settings before the persistent data block wipe is finished. Bug: 20458454 Change-Id: I07bf79f25bcb30ac8932925aa7b77b9a95d16e20
This commit is contained in:
@@ -78,8 +78,10 @@ public class MasterClearConfirm extends InstrumentedFragment {
|
|||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(Void aVoid) {
|
protected void onPostExecute(Void aVoid) {
|
||||||
mProgressDialog.hide();
|
mProgressDialog.hide();
|
||||||
getActivity().setRequestedOrientation(mOldOrientation);
|
if (getActivity() != null) {
|
||||||
doMasterClear();
|
getActivity().setRequestedOrientation(mOldOrientation);
|
||||||
|
doMasterClear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user