Fix Jank when factory resetting
A progress dialog is shown and quickly disappear caused the UI jank. The progress dialog should be shown only when erase external SD card is needed because WipeDataTask only wipe SD card in it background task. Other factory reset function is done in Thread thr. Fixes: 140594314 Test: manual Change-Id: I71ab1577165ceab79704b359c47c3f752d9dfc79
This commit is contained in:
@@ -88,7 +88,7 @@ public class MasterClearReceiver extends BroadcastReceiver {
|
||||
}
|
||||
};
|
||||
|
||||
if (mWipeExternalStorage || mWipeEsims) {
|
||||
if (mWipeExternalStorage) {
|
||||
// thr will be started at the end of this task.
|
||||
new WipeDataTask(context, thr).execute();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user