protected void onPostExecute(Boolean success) { pDialog.dismiss(); if (!success || mException != null) { Notifyer.showExceptionToast(mContext, TAG, mException); } else { if (isJobFlash() || isJobRestore()) { Log.i(TAG, "Flash finished"); if (!Common.getBooleanPref(mContext, PREF_NAME, PREF_KEY_HIDE_REBOOT)) { showRebootDialog(); } else { if (!keepAppOpen) { System.exit(0); } } } } tmpFile.delete(); if (RunAtEnd != null) RunAtEnd.run(); }