Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Android: fix cancellation handling (react-native-image-picker#506)
Browse files Browse the repository at this point in the history
- This was broken by react-native-image-picker#496.
- Currently, the response object is empty, lacking the `didCancel` flag.
  • Loading branch information
egpast authored and marcshilling committed Mar 10, 2017
1 parent dca64f1 commit 646e427
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public void onActivityResult(Activity activity, int requestCode, int resultCode,

// user cancel
if (resultCode != Activity.RESULT_OK) {
responseHelper.invokeResponse(callback);
responseHelper.invokeCancel(callback);
callback = null;
return;
}
Expand Down

0 comments on commit 646e427

Please sign in to comment.