cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [08/12] cordova-plugin-camera git commit: CB-11625 (Android) : Make this work with previous versions of Cordova via cordova-plugin-compat
Date Tue, 08 Nov 2016 00:10:36 GMT
CB-11625 (Android) : Make this work with previous versions of Cordova via cordova-plugin-compat


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

Branch: refs/heads/master
Commit: 61064ae3ed6c520e6de6646566b83772854d0fea
Parents: b63a0d8
Author: Joe Bowser <bowserj@apache.org>
Authored: Fri Oct 21 15:12:34 2016 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Fri Oct 21 15:12:34 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/61064ae3/src/android/CameraLauncher.java
----------------------------------------------------------------------
diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java
index c68462d..58f8bb2 100644
--- a/src/android/CameraLauncher.java
+++ b/src/android/CameraLauncher.java
@@ -29,10 +29,10 @@ import java.io.OutputStream;
 import java.text.SimpleDateFormat;
 import java.util.Date;
 
+import org.apache.cordova.BuildHelper;
 import org.apache.cordova.CallbackContext;
 import org.apache.cordova.CordovaPlugin;
 import org.apache.cordova.CordovaResourceApi;
-import org.apache.cordova.CoreAndroid;
 import org.apache.cordova.LOG;
 import org.apache.cordova.PermissionHelper;
 import org.apache.cordova.PluginResult;
@@ -137,7 +137,8 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
         this.callbackContext = callbackContext;
         //Adding an API to CoreAndroid to get the BuildConfigValue
         //This allows us to not make this a breaking change to embedding
-        this.applicationId = (String) CoreAndroid.getBuildConfigValue(cordova.getActivity(),
"APPLICATION_ID");
+        this.applicationId = (String) BuildHelper.getBuildConfigValue(cordova.getActivity(),
"APPLICATION_ID");
+        this.applicationId = preferences.getString("applicationId", this.applicationId);
 
 
         if (action.equals("takePicture")) {


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


Mime
View raw message