Changeset 280 for trunk/hiptop/pester/net/sabi/pester
- Timestamp:
- 07/24/06 07:19:50 (18 years ago)
- Location:
- trunk/hiptop/pester/net/sabi/pester
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hiptop/pester/net/sabi/pester/Alarm.java
r277 r280 278 278 if (i <= 24 * 60 * 60) { 279 279 i %= 60; 280 return (i == 0 ? 60 : i );280 return (i == 0 ? 60 : i + 1); 281 281 } 282 282 i %= 3600; 283 return (i == 0 ? 3600 : i );283 return (i == 0 ? 3600 : i + 1); 284 284 } 285 285 -
trunk/hiptop/pester/net/sabi/pester/AlarmSetDialog.java
r270 r280 23 23 import danger.ui.StaticTextBox; 24 24 import danger.ui.TypeAheadTextField; 25 import danger.ui.View; 25 26 import danger.util.DEBUG; 26 27 … … 136 137 Application.registerForEvent(this, Event.EVENT_TIME_CHANGED); 137 138 show(); 139 if (!asNew) setFocusedDescendant(isIn() ? (View)mPeriodField : 140 (View)mTimeEditor); 138 141 if (!mHaveShownWindow) { 139 142 Rect alarmRect = mSetAlarmButton.getFrame(); … … 145 148 mHaveShownWindow = true; 146 149 setAutoSize(false); // don't resize to contain it next time 150 // XXX still a minor potential race here, but it's so unlikely 151 // as to not be worth fixing 152 Application.registerForEvent(this, Event.EVENT_TIME_FORMAT_CHANGED); 147 153 } 148 154 } … … 244 250 stopEditing(); 245 251 return true; 252 case Event.EVENT_TIME_FORMAT_CHANGED: // time format changed 253 mTimeEditor.setFormat(DateTimeEditor.FORMAT_TIME_LONG); 254 return true; 246 255 case Event.EVENT_TIME_CHANGED: // time on device changed 247 256 case Event.EVENT_ALARM: // computed time invalid
Note:
See TracChangeset
for help on using the changeset viewer.