Repository: cordova-plugin-camera
Updated Branches:
  refs/heads/master 9f159d757 -> 6e19147b0


Plugin uses Android Log class and not Cordova LOG class


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/6e19147b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/6e19147b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/6e19147b

Branch: refs/heads/master
Commit: 6e19147b09c2341896ee48bd9117e7b57beec9cb
Parents: 9f159d7
Author: Simon MacDonald <simon.macdon...@gmail.com>
Authored: Mon Aug 22 15:52:52 2016 -0400
Committer: Simon MacDonald <simon.macdon...@gmail.com>
Committed: Mon Aug 22 15:52:52 2016 -0400

----------------------------------------------------------------------
 src/android/CameraLauncher.java | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/6e19147b/src/android/CameraLauncher.java
----------------------------------------------------------------------
diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java
index 060103b..50003a4 100644
--- a/src/android/CameraLauncher.java
+++ b/src/android/CameraLauncher.java
@@ -57,7 +57,6 @@ import android.os.Bundle;
 import android.os.Environment;
 import android.provider.MediaStore;
 import android.util.Base64;
-import android.util.Log;
 import android.content.pm.PackageManager;
 import android.content.pm.PackageManager.NameNotFoundException;
 import android.content.pm.PermissionInfo;
@@ -426,14 +425,14 @@ public class CameraLauncher extends CordovaPlugin 
implements MediaScannerConnect
             cropIntent, CROP_CAMERA + destType);
       }
     } catch (ActivityNotFoundException anfe) {
-      Log.e(LOG_TAG, "Crop operation not supported on this device");
+      LOG.e(LOG_TAG, "Crop operation not supported on this device");
       try {
           processResultFromCamera(destType, cameraIntent);
       }
       catch (IOException e)
       {
           e.printStackTrace();
-          Log.e(LOG_TAG, "Unable to write to file");
+          LOG.e(LOG_TAG, "Unable to write to file");
       }
     }
   }
@@ -494,7 +493,7 @@ public class CameraLauncher extends CordovaPlugin 
implements MediaScannerConnect
 
             // Double-check the bitmap.
             if (bitmap == null) {
-                Log.d(LOG_TAG, "I either have a null image path or bitmap");
+                LOG.d(LOG_TAG, "I either have a null image path or bitmap");
                 this.failPicture("Unable to create bitmap!");
                 return;
             }
@@ -537,7 +536,7 @@ public class CameraLauncher extends CordovaPlugin 
implements MediaScannerConnect
 
                 // Double-check the bitmap.
                 if (bitmap == null) {
-                    Log.d(LOG_TAG, "I either have a null image path or 
bitmap");
+                    LOG.d(LOG_TAG, "I either have a null image path or 
bitmap");
                     this.failPicture("Unable to create bitmap!");
                     return;
                 }
@@ -666,7 +665,7 @@ private void refreshGallery(Uri contentUri)
         int rotate = 0;
 
         String fileLocation = FileHelper.getRealPath(uri, this.cordova);
-        Log.d(LOG_TAG, "File locaton is: " + fileLocation);
+        LOG.d(LOG_TAG, "File locaton is: " + fileLocation);
 
         // If you ask for video or all media type you will automatically get 
back a file URI
         // and there will be no attempt to resize any returned data
@@ -688,7 +687,7 @@ private void refreshGallery(Uri contentUri)
             } else {
                 // If we don't have a valid image so quit.
                 if (!("image/jpeg".equalsIgnoreCase(mimeType) || 
"image/png".equalsIgnoreCase(mimeType))) {
-                    Log.d(LOG_TAG, "I either have a null image path or 
bitmap");
+                    LOG.d(LOG_TAG, "I either have a null image path or 
bitmap");
                     this.failPicture("Unable to retrieve path to picture!");
                     return;
                 }
@@ -699,7 +698,7 @@ private void refreshGallery(Uri contentUri)
                     e.printStackTrace();
                 }
                 if (bitmap == null) {
-                    Log.d(LOG_TAG, "I either have a null image path or 
bitmap");
+                    LOG.d(LOG_TAG, "I either have a null image path or 
bitmap");
                     this.failPicture("Unable to create bitmap!");
                     return;
                 }
@@ -779,7 +778,7 @@ private void refreshGallery(Uri contentUri)
                     processResultFromCamera(destType, intent);
                 } catch (IOException e) {
                     e.printStackTrace();
-                    Log.e(LOG_TAG, "Unable to write to file");
+                    LOG.e(LOG_TAG, "Unable to write to file");
                 }
 
             }// If cancelled


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to