Skip to content

Commit

Permalink
Android: make a distinction between success and cancel when adding an…
Browse files Browse the repository at this point in the history
… event --> doesn't seem to work
  • Loading branch information
EddyVerbruggen committed Feb 3, 2014
1 parent b504f4c commit 8e41ba5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/android/nl/xservices/plugins/Calendar.java
Expand Up @@ -47,6 +47,7 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo

public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == RESULT_CODE_CREATE) {
// Hmm, resultCode and requestCode are always 0.. so this doesn't help
if (resultCode == Activity.RESULT_OK) {
callback.success();
} else if (resultCode == Activity.RESULT_CANCELED) {
Expand Down

0 comments on commit 8e41ba5

Please sign in to comment.