mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-02-17 03:40:38 +01:00
do not show an error toast at startPreview failed
This commit is contained in:
parent
8d7c2c5a23
commit
bc2eb5e80d
@ -338,8 +338,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
|
|||||||
mActivity.toggleBottomButtons(false)
|
mActivity.toggleBottomButtons(false)
|
||||||
try {
|
try {
|
||||||
mCamera?.startPreview()
|
mCamera?.startPreview()
|
||||||
} catch (e: Exception) {
|
} catch (ignored: Exception) {
|
||||||
mActivity.showErrorToast(e)
|
|
||||||
}
|
}
|
||||||
mCanTakePicture = true
|
mCanTakePicture = true
|
||||||
focusArea(false, false)
|
focusArea(false, false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user