Ignore:
Timestamp:
07/25/06 16:56:58 (18 years ago)
Author:
Nicholas Riley
Message:

Nicer rescheduling support; cancel reschedule should only be supported for repeating alarms (for non-repeating ones, you can only discard).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hiptop/pester/net/sabi/pester/AlarmSetDialog.java

    r283 r288  
    131131        if (asNew) {
    132132            mDiscardAlarmButton.hide();
    133             // XXX default to now?
    134133        } else {
    135134            editAlarm(alarm);
     
    154153            Application.registerForEvent(this, Event.EVENT_TIME_FORMAT_CHANGED);
    155154        }
     155    }
     156
     157    public void rescheduleAlarm(Alarm alarm) {
     158        setWindowStyle(SYSTEM_DIALOG_STYLE);
     159        if (alarm.getRepeating()) {
     160            alarm.schedule(); // if we cancel, it'll continue repeating
     161        } else {
     162            getCancelButton().disable();
     163        }
     164        editAlarm(alarm, false);
    156165    }
    157166
Note: See TracChangeset for help on using the changeset viewer.