Commit f9466066 by olly Committed by Oliver Woodman

Map R-prerelease to SDK_INT=30

PiperOrigin-RevId: 309411490
parent af6baaed
......@@ -95,7 +95,7 @@ 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 = Build.VERSION.SDK_INT;
public static final int SDK_INT = "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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment