make capture session nullable
This commit is contained in:
parent
e568b96a0b
commit
049245e43d
|
@ -45,7 +45,7 @@ ext {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:4.1.6'
|
implementation 'com.simplemobiletools:commons:4.1.7'
|
||||||
|
|
||||||
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
|
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
|
||||||
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
|
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
|
||||||
|
|
|
@ -575,7 +575,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mCaptureSession!!.apply {
|
mCaptureSession?.apply {
|
||||||
stopRepeating()
|
stopRepeating()
|
||||||
abortCaptures()
|
abortCaptures()
|
||||||
capture(captureBuilder.build(), captureCallback, null)
|
capture(captureBuilder.build(), captureCallback, null)
|
||||||
|
|
Loading…
Reference in New Issue