Commit 75c2cfe7 authored by topjohnwu's avatar topjohnwu

Run onResult in main thread

parent 6c6eeb3f
......@@ -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));
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment