Skip to content

Commit

Permalink
Now using standard request code for PHOTO_EDITOR_REQUEST
Browse files Browse the repository at this point in the history
The current request code simply seems to be the timestamp when it was done, but it needs to be a 16 bit int. See prscX#21 and https://developer.android.com/training/basics/intents/result

It doesn't have to be unique across apps, it's just to validate that the results comes from that request. It could be any other 16 bit number if desired.

Fixes prscX#21
  • Loading branch information
mathieumg committed Oct 26, 2018
1 parent 2e1c730 commit 808ca07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

public class RNPhotoEditorModule extends ReactContextBaseJavaModule {

private static final int PHOTO_EDITOR_REQUEST = 1539266202;
private static final int PHOTO_EDITOR_REQUEST = 1;
private static final String E_PHOTO_EDITOR_CANCELLED = "E_PHOTO_EDITOR_CANCELLED";


Expand Down

0 comments on commit 808ca07

Please sign in to comment.