Skip to content
Permalink
Browse files
Plugin uses Android Log class and not Cordova LOG class
  • Loading branch information
macdonst committed Aug 22, 2016
1 parent 53d428d commit f108e236df1644dfd9d076d861d4f9578653325c
Showing 1 changed file with 2 additions and 3 deletions.
@@ -54,7 +54,6 @@ Licensed to the Apache Software Foundation (ASF) under one
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 @@ private JSONObject getFormatData(String filePath, String mimeType) throws JSONEx
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 @@ private JSONObject getAudioVideoData(String filePath, JSONObject obj, boolean vi
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;
}

0 comments on commit f108e23

Please sign in to comment.