Fix crash with default resolution best on mobile data
This commit is contained in:
parent
fba0a8036b
commit
642b499e70
|
@ -110,7 +110,8 @@ public final class ListHelper {
|
||||||
: context.getString(R.string.best_resolution_key);
|
: context.getString(R.string.best_resolution_key);
|
||||||
|
|
||||||
String maxResolution = getResolutionLimit(context);
|
String maxResolution = getResolutionLimit(context);
|
||||||
if (maxResolution != null && compareVideoStreamResolution(maxResolution, resolution) < 1){
|
if (maxResolution != null && (resolution.equals(context.getString(R.string.best_resolution_key))
|
||||||
|
|| compareVideoStreamResolution(maxResolution, resolution) < 1)) {
|
||||||
resolution = maxResolution;
|
resolution = maxResolution;
|
||||||
}
|
}
|
||||||
return resolution;
|
return resolution;
|
||||||
|
|
Loading…
Reference in New Issue