show the bottom buttons after taking a photo
This commit is contained in:
parent
9cb94fc5e6
commit
27fb68704b
|
@ -92,8 +92,8 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
|||
}
|
||||
|
||||
private fun stopBackgroundThread() {
|
||||
mBackgroundThread?.quitSafely()
|
||||
try {
|
||||
mBackgroundThread?.quitSafely()
|
||||
mBackgroundThread?.join()
|
||||
mBackgroundThread = null
|
||||
mBackgroundHandler = null
|
||||
|
@ -342,6 +342,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
|||
val CaptureCallback = object : CameraCaptureSession.CaptureCallback() {
|
||||
override fun onCaptureCompleted(session: CameraCaptureSession, request: CaptureRequest, result: TotalCaptureResult) {
|
||||
unlockFocus()
|
||||
mActivity.toggleBottomButtons(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue