Merge "Fix isAtLeastS failed on SCV2 and master" into sc-v2-dev
This commit is contained in:
@@ -52,9 +52,9 @@ public final class BuildCompatUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (VERSION.CODENAME.equals("REL") && VERSION.SDK_INT >= 31)
|
return (VERSION.CODENAME.equals("REL") && VERSION.SDK_INT >= 31)
|
||||||
|| (VERSION.CODENAME.length() == 1
|
|| (VERSION.CODENAME.length() >= 1
|
||||||
&& VERSION.CODENAME.compareTo("S") >= 0
|
&& VERSION.CODENAME.toUpperCase().charAt(0) >= 'S'
|
||||||
&& VERSION.CODENAME.compareTo("Z") <= 0);
|
&& VERSION.CODENAME.toUpperCase().charAt(0) <= 'Z');
|
||||||
}
|
}
|
||||||
|
|
||||||
private BuildCompatUtils() {}
|
private BuildCompatUtils() {}
|
||||||
|
|||||||
Reference in New Issue
Block a user