limit image size for cam uploads to FHD

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-09-16 18:47:38 +02:00
parent 7e688c43af
commit 14a3e488cc
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -30,6 +30,7 @@ import android.net.Uri;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
import android.util.Size;
import android.view.OrientationEventListener;
import android.view.Surface;
import android.view.View;
@ -186,7 +187,7 @@ public class TakePhotoActivity extends AppCompatActivity {
}
private ImageCapture getImageCapture() {
final ImageCapture imageCapture = new ImageCapture.Builder().build();
final ImageCapture imageCapture = new ImageCapture.Builder().setTargetResolution(new Size(1080, 1920)).build();
orientationEventListener = new OrientationEventListener(this) {
@Override