mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-18 19:22:51 +08:00
fix(android): set applicationId (#827)
Co-authored-by: Alexandre Alves <aalves@seamlink.com>
This commit is contained in:
parent
827bb611ee
commit
2c09ade500
@ -147,7 +147,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
|
|||||||
this.callbackContext = callbackContext;
|
this.callbackContext = callbackContext;
|
||||||
//Adding an API to CoreAndroid to get the BuildConfigValue
|
//Adding an API to CoreAndroid to get the BuildConfigValue
|
||||||
//This allows us to not make this a breaking change to embedding
|
//This allows us to not make this a breaking change to embedding
|
||||||
this.applicationId = (String) BuildHelper.getBuildConfigValue(cordova.getActivity(), "APPLICATION_ID");
|
this.applicationId = cordova.getContext().getPackageName();
|
||||||
this.applicationId = preferences.getString("applicationId", this.applicationId);
|
this.applicationId = preferences.getString("applicationId", this.applicationId);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user