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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user