mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
Mark opt-in use of camera2 implementation
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
19f3716183
commit
1230aa7773
@ -360,6 +360,7 @@ public class TakePhotoActivity extends AppCompatActivity {
|
|||||||
return rotate;
|
return rotate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@androidx.camera.camera2.interop.ExperimentalCamera2Interop
|
||||||
private Preview getPreview(boolean crop) {
|
private Preview getPreview(boolean crop) {
|
||||||
Preview.Builder previewBuilder = new Preview.Builder()
|
Preview.Builder previewBuilder = new Preview.Builder()
|
||||||
.setTargetAspectRatio(crop ? AspectRatio.RATIO_16_9 : AspectRatio.RATIO_4_3);
|
.setTargetAspectRatio(crop ? AspectRatio.RATIO_16_9 : AspectRatio.RATIO_4_3);
|
||||||
|
Loading…
Reference in New Issue
Block a user