mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Change scheduleAlarm algorymth
This commit is contained in:
parent
e598d4827b
commit
6d36fa3839
1 changed files with 5 additions and 2 deletions
|
@ -375,12 +375,15 @@ public class MedicamentListActivity extends AppCompatActivity {
|
|||
|
||||
if (today.before(dateAtNoon(today))) {
|
||||
// schedule date = today
|
||||
calendar.setTimeInMillis(dateAtNoon(today).getTime());
|
||||
//calendar.setTimeInMillis(dateAtNoon(today).getTime());
|
||||
calendar.setTimeInMillis(today.getTime());
|
||||
} else {
|
||||
// schedule date = tomorrow
|
||||
calendar.setTimeInMillis(dateAtNoon(tomorow).getTime());
|
||||
calendar.setTimeInMillis(tomorow.getTime());
|
||||
}
|
||||
|
||||
calendar.set(Calendar.HOUR_OF_DAY,12);
|
||||
|
||||
PendingIntent alarmIntent;
|
||||
|
||||
Intent intent = new Intent(this, AlarmReceiver.class);
|
||||
|
|
Loading…
Reference in a new issue