Add SDK_INT mapping from S -> 31
PiperOrigin-RevId: 332211266
This commit is contained in:
parent
70ebe12ef9
commit
f56db87c99
@ -102,7 +102,10 @@ public final class Util {
|
||||
* Like {@link android.os.Build.VERSION#SDK_INT}, but in a place where it can be conveniently
|
||||
* overridden for local testing.
|
||||
*/
|
||||
public static final int SDK_INT = "R".equals(Build.VERSION.CODENAME) ? 30 : Build.VERSION.SDK_INT;
|
||||
public static final int SDK_INT =
|
||||
"S".equals(Build.VERSION.CODENAME)
|
||||
? 31
|
||||
: "R".equals(Build.VERSION.CODENAME) ? 30 : Build.VERSION.SDK_INT;
|
||||
|
||||
/**
|
||||
* Like {@link Build#DEVICE}, but in a place where it can be conveniently overridden for local
|
||||
|
Loading…
x
Reference in New Issue
Block a user