Fixed error with permission checking. We should exit the method after the permission is denied.
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/610eb844 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/610eb844 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/610eb844 Branch: refs/heads/master Commit: 610eb844fada71c58754c5f5573e4451040bcb9f Parents: ac9bdbf Author: Joe Bowser <[email protected]> Authored: Thu Sep 3 08:43:24 2015 -0700 Committer: Joe Bowser <[email protected]> Committed: Wed Oct 28 10:38:11 2015 -0700 ---------------------------------------------------------------------- src/android/ContactManager.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/610eb844/src/android/ContactManager.java ---------------------------------------------------------------------- diff --git a/src/android/ContactManager.java b/src/android/ContactManager.java index cfad416..2a326dd 100644 --- a/src/android/ContactManager.java +++ b/src/android/ContactManager.java @@ -290,6 +290,7 @@ public class ContactManager extends CordovaPlugin { if(r == PackageManager.PERMISSION_DENIED) { this.callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, PERMISSION_DENIED_ERROR)); + return; } } switch(requestCode) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
