Skip to content

Commit

Permalink
fix(app, android): avoid API24-only APIs, fix Android < 7 crash from …
Browse files Browse the repository at this point in the history
…11.3.0 (#5206)
  • Loading branch information
ifsnow authored Apr 23, 2021
1 parent 1510502 commit 49c15f8
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,13 @@ public String getExecutorName(boolean isTransactional, String identifier) {

public void shutdown() {
Set<String> existingExecutorNames = executors.keySet();
existingExecutorNames.removeIf((executorName) -> {
return executorName.startsWith(name) == false;
});
existingExecutorNames.forEach((executorName) -> {
removeExecutor(executorName);
});
for (String executorName : existingExecutorNames) {
if (executorName.startsWith(name) == false) {
existingExecutorNames.remove(executorName);
} else {
removeExecutor(executorName);
}
}
}

public void removeExecutor(String executorName) {
Expand Down

1 comment on commit 49c15f8

@vercel
Copy link

@vercel vercel bot commented on 49c15f8 Apr 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.