show the bottom buttons after taking a photo

This commit is contained in:
tibbi 2018-05-30 14:50:48 +02:00
parent 9cb94fc5e6
commit 27fb68704b
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}
}