mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-01 04:09:21 +00:00
limit image size for cam uploads to FHD
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
7e688c43af
commit
14a3e488cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user