From 41b373406bde452204a74aec1ece489875bd3323 Mon Sep 17 00:00:00 2001 From: Arkadip Bhattacharya Date: Thu, 28 May 2020 11:22:56 +0530 Subject: [PATCH] fix: cameraX preview alpha11 update Signed-off-by: Arkadip Bhattacharya --- app/src/main/java/com/arkadip/whatsthere/LogicActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/arkadip/whatsthere/LogicActivity.java b/app/src/main/java/com/arkadip/whatsthere/LogicActivity.java index 1b8291b..0af7618 100644 --- a/app/src/main/java/com/arkadip/whatsthere/LogicActivity.java +++ b/app/src/main/java/com/arkadip/whatsthere/LogicActivity.java @@ -135,7 +135,7 @@ private void bindCameraUseCases() { cameraProvider.unbindAll(); camera = cameraProvider.bindToLifecycle(this, cameraSelector, preview, imageAnalysis); - preview.setSurfaceProvider(previewView.createSurfaceProvider(camera.getCameraInfo())); + preview.setSurfaceProvider(previewView.createSurfaceProvider()); toggleFlash(); }