.setRequiresBatteryNotLow is API26, drop it as we don't really need it

This commit is contained in:
Adrian Ulrich 2017-10-15 16:21:35 +02:00
parent 760d321887
commit 02784b53fb

View File

@ -65,7 +65,6 @@ public class ScheduledLibraryUpdate extends JobService {
ComponentName componentName = new ComponentName(context, ScheduledLibraryUpdate.class);
JobInfo job = new JobInfo.Builder(JOB_ID_UPDATE, componentName)
.setRequiresBatteryNotLow(true)
.setRequiresCharging(true)
.setRequiresDeviceIdle(true)
.setPeriodic(3600000 * 8) // run at most every ~8 hours