Changeset 254
- Timestamp:
- 07/19/06 02:47:48 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hiptop/pester/net/sabi/pester/AlarmSetDialog.java
r253 r254 127 127 } 128 128 validate(); 129 Application.registerForEvent(this, Event.EVENT_TIME_CHANGED)); 129 130 show(); 130 131 if (!mHaveShownWindow) { … … 157 158 date.addSeconds(editingInterval()); 158 159 } else { 160 // XXX is it necessary to do this, or do the two share the 161 // XXX same physical Date object? 159 162 date = mDateEditor.getDate(); 160 163 date.setTime(mTimeEditor.getDate().getTime()); … … 203 206 mEditingAlarm = null; 204 207 mValidateAlarm.deactivate(); 208 Application.unregisterForEvent(this, Event.EVENT_TIME_CHANGED); 205 209 } 206 210 … … 231 235 stopEditing(); 232 236 return true; 233 case Event.EVENT_TIME_CHANGED: 234 // XXX this isn't being delivered on the simulator, why? 235 DEBUG.p("time changed"); 236 validate(); 237 return true; 238 case Event.EVENT_ALARM: 237 case Event.EVENT_TIME_CHANGED: // time on device changed 238 case Event.EVENT_ALARM: // computed time invalid 239 239 case EVENT_VALIDATE: // something changed 240 240 validate();
Note:
See TracChangeset
for help on using the changeset viewer.