mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
add a new error message if setting proper resolution fails
This commit is contained in:
@ -205,7 +205,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
|
||||
}.sortedByDescending { it.width * it.height }
|
||||
|
||||
if (index == -1) {
|
||||
mActivity?.toast(R.string.unknown_error_occurred)
|
||||
mActivity?.toast(R.string.setting_resolution_failed)
|
||||
index = getDefaultFullscreenResolution(resolutions) ?: 0
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user