Skip to content

Commit

Permalink
refactor: inline runnable on smali disassemble (#3490)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches authored Jan 14, 2024
1 parent e08ba75 commit 69914eb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,13 @@ private void copySourcesRaw(File outDir, String filename) throws AndrolibExcepti
}

private void scheduleDecodeSourcesSmali(File outDir, String filename) {
Runnable r = () -> {
mWorker.submit(() -> {
try {
decodeSourcesSmali(outDir, filename);
} catch (AndrolibException e) {
mBuildError.compareAndSet(null, new RuntimeException(e));
}
};
mWorker.submit(r);
});
}

private void decodeSourcesSmali(File outDir, String filename) throws AndrolibException {
Expand Down

0 comments on commit 69914eb

Please sign in to comment.