diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt b/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt index 99183921..e101e19e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt @@ -746,8 +746,10 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie mIsRecording = false mMediaRecorder!!.stop() mMediaRecorder!!.reset() - closeCamera() - openCamera(mTextureView.width, mTextureView.height) + Thread { + closeCamera() + openCamera(mTextureView.width, mTextureView.height) + }.start() mActivity.setRecordingState(false) }