add a new error message if setting proper resolution fails

This commit is contained in:
tibbi
2018-02-26 12:37:53 +01:00
parent f0fb06f111
commit 5f4e10c4aa
17 changed files with 17 additions and 1 deletions

View File

@ -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
}