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
1c7cbef1
authored
Apr 17, 2019
by
Philippe Simons
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
use Util.SDK_INT
use androidX workmanager
parent
a2282ad0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
extensions/workmanager/build.gradle
extensions/workmanager/src/main/java/com/google/android/exoplayer2/ext/workmanager/WorkManagerScheduler.java
extensions/workmanager/build.gradle
View file @
1c7cbef1
...
@@ -34,7 +34,7 @@ android {
...
@@ -34,7 +34,7 @@ android {
dependencies
{
dependencies
{
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
project
(
modulePrefix
+
'library-core'
)
implementation
'android
.arch.work:work-runtime:1
.0.1'
implementation
'android
w.work:work-runtime:2
.0.1'
}
}
ext
{
ext
{
...
...
extensions/workmanager/src/main/java/com/google/android/exoplayer2/ext/workmanager/WorkManagerScheduler.java
View file @
1c7cbef1
...
@@ -94,7 +94,7 @@ public final class WorkManagerScheduler implements Scheduler {
...
@@ -94,7 +94,7 @@ public final class WorkManagerScheduler implements Scheduler {
builder
.
setRequiresCharging
(
true
);
builder
.
setRequiresCharging
(
true
);
}
}
if
(
requirements
.
isIdleRequired
()
&&
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
M
)
{
if
(
requirements
.
isIdleRequired
()
&&
Util
.
SDK_INT
>=
23
)
{
builder
.
setRequiresDeviceIdle
(
true
);
builder
.
setRequiresDeviceIdle
(
true
);
}
}
...
...
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