mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 08:55:54 +03: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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue