Mark opt-in use of camera2 implementation

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-05-18 17:26:52 +02:00
parent 19f3716183
commit 1230aa7773
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -360,6 +360,7 @@ public class TakePhotoActivity extends AppCompatActivity {
return rotate;
}
@androidx.camera.camera2.interop.ExperimentalCamera2Interop
private Preview getPreview(boolean crop) {
Preview.Builder previewBuilder = new Preview.Builder()
.setTargetAspectRatio(crop ? AspectRatio.RATIO_16_9 : AspectRatio.RATIO_4_3);