.setRequiresBatteryNotLow is API26, drop it as we don't really need it
This commit is contained in:
parent
760d321887
commit
02784b53fb
@ -65,7 +65,6 @@ public class ScheduledLibraryUpdate extends JobService {
|
|||||||
|
|
||||||
ComponentName componentName = new ComponentName(context, ScheduledLibraryUpdate.class);
|
ComponentName componentName = new ComponentName(context, ScheduledLibraryUpdate.class);
|
||||||
JobInfo job = new JobInfo.Builder(JOB_ID_UPDATE, componentName)
|
JobInfo job = new JobInfo.Builder(JOB_ID_UPDATE, componentName)
|
||||||
.setRequiresBatteryNotLow(true)
|
|
||||||
.setRequiresCharging(true)
|
.setRequiresCharging(true)
|
||||||
.setRequiresDeviceIdle(true)
|
.setRequiresDeviceIdle(true)
|
||||||
.setPeriodic(3600000 * 8) // run at most every ~8 hours
|
.setPeriodic(3600000 * 8) // run at most every ~8 hours
|
||||||
|
Loading…
x
Reference in New Issue
Block a user