mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
use Util.SDK_INT
use androidX workmanager
This commit is contained in:
parent
a2282ad0dd
commit
1c7cbef1b9
@ -34,7 +34,7 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation project(modulePrefix + 'library-core')
|
||||
implementation 'android.arch.work:work-runtime:1.0.1'
|
||||
implementation 'androidw.work:work-runtime:2.0.1'
|
||||
}
|
||||
|
||||
ext {
|
||||
|
@ -94,7 +94,7 @@ public final class WorkManagerScheduler implements Scheduler {
|
||||
builder.setRequiresCharging(true);
|
||||
}
|
||||
|
||||
if (requirements.isIdleRequired() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
if (requirements.isIdleRequired() && Util.SDK_INT >= 23) {
|
||||
builder.setRequiresDeviceIdle(true);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user