catch all exceptions at unlocking focus

This commit is contained in:
tibbi 2018-08-07 20:36:19 +02:00
parent 9285bc3b72
commit 87293d9706

View File

@ -796,7 +796,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
if (mLastFocusX != 0f && mLastFocusY != 0f) {
focusArea(mLastFocusX, mLastFocusY, false)
}
} catch (e: CameraAccessException) {
} catch (e: Exception) {
} finally {
mCameraState = STATE_PREVIEW
}