8
0
mirror of https://gitee.com/shuto/customCamera.git synced 2026-05-21 00:00:01 +08:00

On donne la possibilié de lancer le plugin sans background. On masque la barre d'opacité et le bouton miniature.

This commit is contained in:
Christophe BOUCAUT
2015-01-12 10:28:43 +01:00
parent f620c587fa
commit 96f859a57a
2 changed files with 20 additions and 13 deletions
+14 -12
View File
@@ -34,20 +34,22 @@ public class CameraLauncher extends CordovaPlugin {
Intent intent = new Intent(this.cordova.getActivity(), CameraActivity.class);
byte[] imgBackgroundBase64;
try {
imgBackgroundBase64 = Base64.decode(args.getString(0), Base64.NO_WRAP);
} catch (IllegalArgumentException e) {
this.callbackContext.error(
generateError(
CameraLauncher.RESULT_ERROR,
"Error decode base64 picture."
)
);
if (args.getString(0) != "null") {
byte[] imgBackgroundBase64;
try {
imgBackgroundBase64 = Base64.decode(args.getString(0), Base64.NO_WRAP);
} catch (IllegalArgumentException e) {
this.callbackContext.error(
generateError(
CameraLauncher.RESULT_ERROR,
"Error decode base64 picture."
)
);
return false;
return false;
}
TransferBigData.setImgBackgroundBase64(imgBackgroundBase64);
}
TransferBigData.setImgBackgroundBase64(imgBackgroundBase64);
intent.putExtra("miniature", args.getBoolean(1));