mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
make capture session nullable
This commit is contained in:
@ -575,7 +575,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
||||
}
|
||||
}
|
||||
|
||||
mCaptureSession!!.apply {
|
||||
mCaptureSession?.apply {
|
||||
stopRepeating()
|
||||
abortCaptures()
|
||||
capture(captureBuilder.build(), captureCallback, null)
|
||||
|
Reference in New Issue
Block a user