Changeset 283 for trunk/hiptop
- Timestamp:
- 07/25/06 07:34:35 (18 years ago)
- Location:
- trunk/hiptop/pester
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hiptop/pester/locale/en_US/Pester.rsrc
r280 r283 246 246 shortcut = doneButton 247 247 endAlert 248 249 stringArray ID_ALARM_MESSAGES 250 "Bus" 251 "Dinner" 252 "Exercise" 253 "Go home" 254 "Laundry" 255 "Lunch" 256 "Meeting" 257 "Sleep" 258 "Train" 259 "Wake up" 260 endStringArray -
trunk/hiptop/pester/net/sabi/pester/AlarmSetDialog.java
r280 r283 71 71 mDiscardAlarmButton = 72 72 (Button)getDescendantWithID(ID_DISCARD_ALARM_BUTTON); 73 mMessageField.setTextFinder(new MessageFinder()); 74 mMessageField.setNumCharsNeededForCompletion(0); 73 75 mInButton.setValue(1); 74 76 mDateEditor.limitToDangerEpoch(); … … 228 230 if (!isValid()) 229 231 return true; 230 mEditingAlarm.setMessage(mMessageField.toString()); 232 String message = mMessageField.toString(); 233 mEditingAlarm.setMessage(message); 234 MessageFinder.usedMessage(message); 231 235 // set the period regardless, so it gets saved for future use 232 236 mEditingAlarm.setPeriod(editingInterval(), -
trunk/hiptop/pester/net/sabi/pester/Alarms.java
r278 r283 44 44 alarm.resume(); 45 45 } 46 try { 47 MessageFinder.setMessageListFromByteArray(sSettingsDB.getBytes(KEY_RECENT_MESSAGES)); 48 } catch (SettingsDBException e) { 49 MessageFinder.setDefaultMessageList(); 50 } 46 51 sAlarmList = this; 47 52 } … … 62 67 public static void removeAlarm(Alarm alarm) { 63 68 sAlarmList.removeItem(alarm); 69 } 70 public static void recentMessagesChanged() { 71 sSettingsDB.setBytes(KEY_RECENT_MESSAGES, 72 MessageFinder.messageListAsByteArray()); 64 73 } 65 74 … … 94 103 95 104 private static String KEY_DEFAULT_ALARM = "default alarm"; 105 private static String KEY_RECENT_MESSAGES = "recent messages"; 96 106 97 107 public static Alarm getDefaultAlarm() {
Note:
See TracChangeset
for help on using the changeset viewer.