Ignore:
Timestamp:
07/09/06 05:46:44 (18 years ago)
Author:
Nicholas Riley
Message:

Chooser label; 0 -> No; persist ringtone and alarm message for new alarms.

Location:
trunk/hiptop/pester/net/sabi/pester
Files:
2 edited

Legend:

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

    r245 r246  
    120120        sEditingAlarm = alarm;
    121121        alarm.beginEditing();
    122         sMessageField.setText(alarm.getMessage());
    123122        if (asNew) {
    124123            sDiscardAlarmButton.hide();
    125124        } else {
     125            sMessageField.setText(alarm.getMessage());
    126126            sDiscardAlarmButton.show();
    127127            editDateOrPeriod(alarm);
     128            sAlertPicker.setRingTone(sEditingAlarm.getAlert());
    128129        }
    129130        constrainDate();
    130         sAlertPicker.setRingTone(sEditingAlarm.getAlert());
    131131        sEditWindow.show();
    132132    }
  • trunk/hiptop/pester/net/sabi/pester/AlarmListWindow.java

    r242 r246  
    11package net.sabi.pester;
    22
     3import danger.app.Application;
    34import danger.ui.ScreenWindow;
    45import danger.ui.Menu;
     
    89    implements Resources, Commands {
    910    private static AlarmListView sAlarmListView;
     11    private static Pester sPester;
    1012
    1113    public void onDecoded() {
    1214        sAlarmListView = (AlarmListView)getDescendantWithID(ID_ALARM_LIST_VIEW);
     15        sPester = (Pester)Application.getCurrentApp();
    1316        updateAlarmCount();
    1417        super.onDecoded();
     
    1720    public void updateAlarmCount() {
    1821        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");
    2026        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();
    2332    }
    2433
Note: See TracChangeset for help on using the changeset viewer.