You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2016/08/22 20:49:03 UTC

cordova-plugin-media-capture git commit: Plugin uses Android Log class and not Cordova LOG class

Repository: cordova-plugin-media-capture
Updated Branches:
  refs/heads/master 53d428d20 -> f108e236d


Plugin uses Android Log class and not Cordova LOG class


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

Branch: refs/heads/master
Commit: f108e236df1644dfd9d076d861d4f9578653325c
Parents: 53d428d
Author: Simon MacDonald <si...@gmail.com>
Authored: Mon Aug 22 16:48:50 2016 -0400
Committer: Simon MacDonald <si...@gmail.com>
Committed: Mon Aug 22 16:48:50 2016 -0400

----------------------------------------------------------------------
 src/android/Capture.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/f108e236/src/android/Capture.java
----------------------------------------------------------------------
diff --git a/src/android/Capture.java b/src/android/Capture.java
index 3ba5132..73781b8 100644
--- a/src/android/Capture.java
+++ b/src/android/Capture.java
@@ -54,7 +54,6 @@ import android.media.MediaPlayer;
 import android.net.Uri;
 import android.os.Environment;
 import android.provider.MediaStore;
-import android.util.Log;
 
 public class Capture extends CordovaPlugin {
 
@@ -163,7 +162,7 @@ public class Capture extends CordovaPlugin {
         if (mimeType == null || mimeType.equals("") || "null".equals(mimeType)) {
             mimeType = FileHelper.getMimeType(fileUrl, cordova);
         }
-        Log.d(LOG_TAG, "Mime type = " + mimeType);
+        LOG.d(LOG_TAG, "Mime type = " + mimeType);
 
         if (mimeType.equals(IMAGE_JPEG) || filePath.endsWith(".jpg")) {
             obj = getImageData(fileUrl, obj);
@@ -214,7 +213,7 @@ public class Capture extends CordovaPlugin {
                 obj.put("width", player.getVideoWidth());
             }
         } catch (IOException e) {
-            Log.d(LOG_TAG, "Error: loading video file");
+            LOG.d(LOG_TAG, "Error: loading video file");
         }
         return obj;
     }


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