mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
catch all exceptions thrown at getting camera characteristics
This commit is contained in:
@ -108,7 +108,7 @@ class CameraPreview : ViewGroup, TextureView.SurfaceTextureListener, MyPreview {
|
||||
mTextureView = textureView
|
||||
val cameraCharacteristics = try {
|
||||
getCameraCharacteristics(activity.config.lastUsedCamera)
|
||||
} catch (e: IllegalArgumentException) {
|
||||
} catch (e: Exception) {
|
||||
mActivity.showErrorToast("Get camera characteristics $e")
|
||||
null
|
||||
}
|
||||
|
Reference in New Issue
Block a user