Ignore:
Timestamp:
07/22/06 04:01:48 (18 years ago)
Author:
Nicholas Riley
Message:

Tooltip updating (which flashes on the device. I'm gonna kill someone...)

File:
1 edited

Legend:

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

    r259 r273  
    249249    }
    250250
     251    public int getSecondsUntilNextIntervalStringUpdate() {
     252        int i = remainingInterval();
     253        if (i == 1)
     254            return 0;
     255        if (i <= 60)
     256            return 1;
     257        if (i <= 24 * 60 * 60)
     258            return i % 60;
     259        return i % 3600; // update at least once an hour, regardless
     260    }
     261
    251262    public String getDateTimeString(boolean relative) {
    252263        return dateTimeString(mDate, relative);
Note: See TracChangeset for help on using the changeset viewer.