Changeset 246 for trunk/hiptop/pester/net/sabi
- Timestamp:
- 07/09/06 05:46:44 (18 years ago)
- Location:
- trunk/hiptop/pester/net/sabi/pester
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hiptop/pester/net/sabi/pester/AlarmListView.java
r245 r246 120 120 sEditingAlarm = alarm; 121 121 alarm.beginEditing(); 122 sMessageField.setText(alarm.getMessage());123 122 if (asNew) { 124 123 sDiscardAlarmButton.hide(); 125 124 } else { 125 sMessageField.setText(alarm.getMessage()); 126 126 sDiscardAlarmButton.show(); 127 127 editDateOrPeriod(alarm); 128 sAlertPicker.setRingTone(sEditingAlarm.getAlert()); 128 129 } 129 130 constrainDate(); 130 sAlertPicker.setRingTone(sEditingAlarm.getAlert());131 131 sEditWindow.show(); 132 132 } -
trunk/hiptop/pester/net/sabi/pester/AlarmListWindow.java
r242 r246 1 1 package net.sabi.pester; 2 2 3 import danger.app.Application; 3 4 import danger.ui.ScreenWindow; 4 5 import danger.ui.Menu; … … 8 9 implements Resources, Commands { 9 10 private static AlarmListView sAlarmListView; 11 private static Pester sPester; 10 12 11 13 public void onDecoded() { 12 14 sAlarmListView = (AlarmListView)getDescendantWithID(ID_ALARM_LIST_VIEW); 15 sPester = (Pester)Application.getCurrentApp(); 13 16 updateAlarmCount(); 14 17 super.onDecoded(); … … 17 20 public void updateAlarmCount() { 18 21 int size = sAlarmListView.alarmsSet(); 19 StringBuffer sb = new StringBuffer().append(size).append(" alarm"); 22 StringBuffer sb = new StringBuffer(); 23 if (size == 0) sb.append("No"); 24 else sb.append(size); 25 sb.append(" alarm"); 20 26 if (size != 1) sb.append('s'); 21 // sb.append(" set"); 22 setSubTitle(sb.toString()); 27 sb.append(" set"); 28 String alarmCount = sb.toString(); 29 setSubTitle(alarmCount); 30 sPester.setChooserFolderLabel(alarmCount); 31 sPester.updatePreviewScreen(); 23 32 } 24 33
Note:
See TracChangeset
for help on using the changeset viewer.