Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f56db87c
authored
Sep 17, 2020
by
ibaker
Committed by
Ian Baker
Sep 17, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add SDK_INT mapping from S -> 31
PiperOrigin-RevId: 332211266
parent
70ebe12e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
library/common/src/main/java/com/google/android/exoplayer2/util/Util.java
library/common/src/main/java/com/google/android/exoplayer2/util/Util.java
View file @
f56db87c
...
@@ -102,7 +102,10 @@ public final class Util {
...
@@ -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
* Like {@link android.os.Build.VERSION#SDK_INT}, but in a place where it can be conveniently
* overridden for local testing.
* 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
* Like {@link Build#DEVICE}, but in a place where it can be conveniently overridden for local
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment