Run onResult in main thread

This commit is contained in:
topjohnwu 2018-12-24 20:51:14 +08:00
parent 6c6eeb3f28
commit 75c2cfe7bf

View File

@ -75,7 +75,8 @@ public abstract class FlashZip {
success = flash();
} catch (IOException ignored) {}
Shell.su("cd /", "rm -rf " + tmpFile.getParent() + " " + Const.TMP_FOLDER_PATH).submit();
onResult(success);
boolean finalSuccess = success;
App.mainHandler.post(() -> onResult(finalSuccess));
});
}