Run onResult in main thread
This commit is contained in:
parent
6c6eeb3f28
commit
75c2cfe7bf
@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user