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
|
||||
mMediaRecorder!!.stop()
|
||||
mMediaRecorder!!.reset()
|
||||
closeCamera()
|
||||
openCamera(mTextureView.width, mTextureView.height)
|
||||
Thread {
|
||||
closeCamera()
|
||||
openCamera(mTextureView.width, mTextureView.height)
|
||||
}.start()
|
||||
mActivity.setRecordingState(false)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue