Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	camera/src/main/java/com/senssun/camera/CameraBuilder.kt
  • Loading branch information
liangzhengang committed Nov 26, 2021
2 parents b02a819 + 8a733b5 commit d13d5a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions camera/src/main/java/com/senssun/camera/CameraBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ class CameraBuilder(val fragment: Fragment?, val activity: AppCompatActivity?) {
if (preview == null) {
camera = cameraProvider.bindToLifecycle(
fragment ?: activity!!,
cameraSelector ?: CameraSelector.DEFAULT_FRONT_CAMERA, imageCapture
)
cameraSelector ?: CameraSelector.DEFAULT_FRONT_CAMERA,imageCapture)
} else {
camera = cameraProvider.bindToLifecycle(
fragment ?: activity!!,
Expand Down

0 comments on commit d13d5a9

Please sign in to comment.