You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2015/10/28 20:00:07 UTC

[2/4] cordova-plugin-contacts git commit: Fixed error with permission checking. We should exit the method after the permission is denied.

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 <bo...@apache.org>
Authored: Thu Sep 3 08:43:24 2015 -0700
Committer: Joe Bowser <bo...@apache.org>
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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org