make capture session nullable

This commit is contained in:
tibbi
2018-06-12 10:18:25 +02:00
parent e568b96a0b
commit 049245e43d
2 changed files with 2 additions and 2 deletions

View File

@ -575,7 +575,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
}
}
mCaptureSession!!.apply {
mCaptureSession?.apply {
stopRepeating()
abortCaptures()
capture(captureBuilder.build(), captureCallback, null)