mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-02-16 19:30:40 +01:00
use a background thread for restarting the camera after recording
This commit is contained in:
parent
6c885c83c2
commit
8ae6c32206
@ -746,8 +746,10 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
|||||||
mIsRecording = false
|
mIsRecording = false
|
||||||
mMediaRecorder!!.stop()
|
mMediaRecorder!!.stop()
|
||||||
mMediaRecorder!!.reset()
|
mMediaRecorder!!.reset()
|
||||||
closeCamera()
|
Thread {
|
||||||
openCamera(mTextureView.width, mTextureView.height)
|
closeCamera()
|
||||||
|
openCamera(mTextureView.width, mTextureView.height)
|
||||||
|
}.start()
|
||||||
mActivity.setRecordingState(false)
|
mActivity.setRecordingState(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user