do not show an error toast at startPreview failed

This commit is contained in:
tibbi 2017-11-04 23:43:37 +01:00
parent 8d7c2c5a23
commit bc2eb5e80d
1 changed files with 1 additions and 2 deletions

View File

@ -338,8 +338,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
mActivity.toggleBottomButtons(false)
try {
mCamera?.startPreview()
} catch (e: Exception) {
mActivity.showErrorToast(e)
} catch (ignored: Exception) {
}
mCanTakePicture = true
focusArea(false, false)