Skip to content

Commit

Permalink
fix(android): Prevent crash if activity killed on input file (#5328)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Dec 20, 2021
1 parent 033f4ee commit a206841
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ public BridgeWebChromeClient(Bridge bridge) {
activityLauncher =
bridge.registerForActivityResult(
new ActivityResultContracts.StartActivityForResult(),
result -> activityListener.onActivityResult(result)
result -> {
if (activityListener != null) {
activityListener.onActivityResult(result);
}
}
);
}

Expand Down

0 comments on commit a206841

Please sign in to comment.