mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Use SetMinimumLatency(long) instead of setPeriodic
This commit is contained in:
parent
24e4d35696
commit
d6075e76e3
1 changed files with 2 additions and 2 deletions
|
@ -388,13 +388,13 @@ public class MedicamentListActivity extends AppCompatActivity {
|
|||
if (today.before(dateAtNoon(today))) {
|
||||
info = new JobInfo.Builder(24560, componentName)
|
||||
.setPersisted(true)
|
||||
.setPeriodic(dateAtNoon(today).getTime())
|
||||
.setMinimumLatency(dateAtNoon(today).getTime())
|
||||
.build();
|
||||
scheduleDate = today;
|
||||
} else {
|
||||
info = new JobInfo.Builder(24560, componentName)
|
||||
.setPersisted(true)
|
||||
.setPeriodic(dateAtNoon(tomorrow).getTime())
|
||||
.setMinimumLatency(dateAtNoon(tomorrow).getTime())
|
||||
.build();
|
||||
scheduleDate = tomorrow;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue