cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [1/4] cordova-plugin-camera git commit: Fix permission handling
Date Thu, 22 Oct 2015 23:19:32 GMT
Repository: cordova-plugin-camera
Updated Branches:
  refs/heads/master 933b35b0d -> 44475d9df


Fix permission handling


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/cbe17eec
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/cbe17eec
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/cbe17eec

Branch: refs/heads/master
Commit: cbe17eec213c810695f257a93799a2fb88111def
Parents: 8024c5d
Author: Joe Bowser <bowserj@apache.org>
Authored: Thu Sep 3 09:08:47 2015 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Thu Oct 22 16:19:12 2015 -0700

----------------------------------------------------------------------
 src/android/CameraLauncher.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/cbe17eec/src/android/CameraLauncher.java
----------------------------------------------------------------------
diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java
index 981efcc..28e96bc 100644
--- a/src/android/CameraLauncher.java
+++ b/src/android/CameraLauncher.java
@@ -1167,6 +1167,7 @@ private String ouputModifiedBitmap(Bitmap bitmap, Uri uri) throws IOException
{
             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


Mime
View raw message