Skip to content

Commit

Permalink
Run onResult in main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Dec 24, 2018
1 parent 6c6eeb3 commit 75c2cfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/com/topjohnwu/core/tasks/FlashZip.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public void exec() {
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));
});
}

Expand Down

0 comments on commit 75c2cfe

Please sign in to comment.