Skip to content

Commit

Permalink
fix: cameraX preview alpha11 update
Browse files Browse the repository at this point in the history
Signed-off-by: Arkadip Bhattacharya <[email protected]>
  • Loading branch information
darkmatter18 committed May 28, 2020
1 parent 251166c commit 41b3734
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 41b3734

Please sign in to comment.