9
0
mirror of https://gitee.com/shuto/customCamera.git synced 2026-05-02 00:07:24 +08:00

Ajout de la possibilité de désactivé la fonction miniature.

This commit is contained in:
Christophe Boucaut
2015-01-05 12:00:00 +01:00
parent d5f63b4b74
commit d2dcb181e0
3 changed files with 27 additions and 6 deletions
+2
View File
@@ -49,6 +49,8 @@ public class CameraLauncher extends CordovaPlugin {
}
TransferBigData.setImgBackgroundBase64(imgBackgroundBase64);
intent.putExtra("miniature", args.getBoolean(1));
cordova.startActivityForResult((CordovaPlugin) this, intent, CameraLauncher.REQUEST_CODE);
return true;
@@ -113,6 +113,11 @@ public class CameraActivity extends Activity {
@Override
public void onStopTrackingTouch(SeekBar seekBar) {}
});
if (!this.getIntent().getBooleanExtra("miniature", true)) {
Button miniature = (Button) findViewById(R.id.miniature);
miniature.setVisibility(View.INVISIBLE);
}
}
/** Method onStart. Handle the zoom level seekBar and the camera orientation. */