mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
show the bottom buttons after taking a photo
This commit is contained in:
@ -92,8 +92,8 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun stopBackgroundThread() {
|
private fun stopBackgroundThread() {
|
||||||
mBackgroundThread?.quitSafely()
|
|
||||||
try {
|
try {
|
||||||
|
mBackgroundThread?.quitSafely()
|
||||||
mBackgroundThread?.join()
|
mBackgroundThread?.join()
|
||||||
mBackgroundThread = null
|
mBackgroundThread = null
|
||||||
mBackgroundHandler = null
|
mBackgroundHandler = null
|
||||||
@ -342,6 +342,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
|||||||
val CaptureCallback = object : CameraCaptureSession.CaptureCallback() {
|
val CaptureCallback = object : CameraCaptureSession.CaptureCallback() {
|
||||||
override fun onCaptureCompleted(session: CameraCaptureSession, request: CaptureRequest, result: TotalCaptureResult) {
|
override fun onCaptureCompleted(session: CameraCaptureSession, request: CaptureRequest, result: TotalCaptureResult) {
|
||||||
unlockFocus()
|
unlockFocus()
|
||||||
|
mActivity.toggleBottomButtons(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user