mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-01-27 21:49:19 +01:00
catch exceptions thrown at startPreview
This commit is contained in:
parent
0aa6493fdc
commit
4262e0c14b
@ -336,7 +336,10 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
|
||||
private fun resumePreview() {
|
||||
mIsPreviewShown = false
|
||||
mActivity.toggleBottomButtons(false)
|
||||
mCamera?.startPreview()
|
||||
try {
|
||||
mCamera?.startPreview()
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
mCanTakePicture = true
|
||||
focusArea(false, false)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user