Ignore:
Timestamp:
07/28/06 08:33:38 (18 years ago)
Author:
Nicholas Riley
Message:

Move discard alert text to resource. Fix listener for
EVENT_TIME_CHANGED I broke a few days ago. Only use
Alarm.mAbsoluteFireTime to measure real time if the alarm was
scheduled/rescheduled (through user action, not restoration from a
datastore) since boot. Don't display dates in the past as if they're
in the following week.

File:
1 edited

Legend:

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

    r294 r295  
    6969            AlertWindow alert =
    7070                Application.getCurrentApp().getAlert(ID_DISCARD_ALERT, this);
    71             alert.setMessage("Permanently discard \u201c" +
    72                              alarm.getMessage() + "\u201d?"); // XXX localize
     71            alert.setMessage(StringFormat.withFormat(alert.getMessage(),
     72                                                     alarm.getMessage()));
    7373            alert.show();
    7474            return true;
     
    7979            ((Alarm)getFocusedItem()).resume();
    8080            return true;
    81         // XXX for EVENT_TIME_FORMAT_CHANGED, we also need to force a
    82         // full redraw (in addition to invalidating the tooltip)
     81        case Event.EVENT_TIME_FORMAT_CHANGED:
     82            invalidate();
    8383        case Event.EVENT_TIME_CHANGED:
    8484            if (mToolTipWindow == null || !mToolTipWindow.isVisible())
Note: See TracChangeset for help on using the changeset viewer.