Run onResult in main thread
This commit is contained in:
parent
6c6eeb3f28
commit
75c2cfe7bf
@ -75,7 +75,8 @@ public abstract class FlashZip {
|
|||||||
success = flash();
|
success = flash();
|
||||||
} catch (IOException ignored) {}
|
} catch (IOException ignored) {}
|
||||||
Shell.su("cd /", "rm -rf " + tmpFile.getParent() + " " + Const.TMP_FOLDER_PATH).submit();
|
Shell.su("cd /", "rm -rf " + tmpFile.getParent() + " " + Const.TMP_FOLDER_PATH).submit();
|
||||||
onResult(success);
|
boolean finalSuccess = success;
|
||||||
|
App.mainHandler.post(() -> onResult(finalSuccess));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user