mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
show an error if no profile has been retrieved at video recording
This commit is contained in:
@ -636,6 +636,11 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
|
||||
CamcorderProfile.get(CamcorderProfile.QUALITY_LOW)
|
||||
}
|
||||
|
||||
if (profile == null) {
|
||||
mActivity?.toast(R.string.unknown_error_occurred)
|
||||
return false
|
||||
}
|
||||
|
||||
profile.apply {
|
||||
videoFrameWidth = resolution.width
|
||||
videoFrameHeight = resolution.height
|
||||
|
Reference in New Issue
Block a user