Closed Cornholio2108 closed 4 years ago
Modify FragNewAlarm:
private void initViews()
{
...
//final Calendar c = Calendar.getInstance();
//timePicker.setHour(c.get(Calendar.HOUR_OF_DAY));
//timePicker.setMinute(c.get(Calendar.MINUTE)+1);
//replace with:
final Calendar c = Calendar.getInstance();
if(oldAlarm!=null)
{
c.setTimeInMillis(oldAlarm.alarmMillis);
}
timePicker.setHour(c.get(Calendar.HOUR_OF_DAY));
timePicker.setMinute(c.get(Calendar.MINUTE)+1);
...
}
fixed
On edit alarm, time is set to current time. Should keep old alarm time.