Browse Source

update cameraview to beta-04

Luke S 5 months ago
parent
commit
b1c3c157a7
2 changed files with 2 additions and 2 deletions
  1. 1 1
      build.gradle
  2. 1 1
      src/main/java/org/havenapp/main/ui/CameraViewHolder.java

+ 1 - 1
build.gradle

@@ -187,5 +187,5 @@ dependencies {
187 187
     implementation 'com.evernote:android-job:1.2.6'
188 188
 
189 189
     // new camera view: https://github.com/natario1/CameraView
190
-    implementation 'com.otaliastudios:cameraview:2.0.0-beta02'
190
+    implementation 'com.otaliastudios:cameraview:2.0.0-beta04'
191 191
 }

+ 1 - 1
src/main/java/org/havenapp/main/ui/CameraViewHolder.java

@@ -214,7 +214,7 @@ public class CameraViewHolder {
214 214
         updateCamera();
215 215
 
216 216
         cameraView.setPlaySounds(false);
217
-        cameraView.setPreviewSize(new SizeSelector() {
217
+        cameraView.setPreviewStreamSize(new SizeSelector() {
218 218
             @NonNull
219 219
             @Override
220 220
             public List<Size> select(@NonNull List<Size> source) {