-
-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Description
To reproduce:
- Open the SuntimesAlarms activity.
- Click the Add (
+
) button. (opens alarm dialog) - Select the summer solstice, then click
ok
. (transitions to EditActivity) - Click the
at
button. (opens offset dialog) - Select
2 days
andbefore
; note that multi-day offsets are only available for the moon phases and solstices/equinoxes, but are not supported by the daily rising/setting/twilight events. (closes offset dialog) - Click
summer solstice
. (reopens the alarm dialog) - Change the event to
sunrise
, then clickok
. (closes the alarm dialog) - Click
save
. (transitions back to the alarm list)
Observe: The alarm is now set for "2 days before sunrise", with the correct time for sunrise, but for a date that 2 days in the future. The offset is invalid for this event (and the scheduling behavior unexpected).
When scheduling the alarm the algorithm repeatedly fails to find "2 days before sunrise", until it has advanced at least that many days. A side-effect is that its actually possible schedule an alarm that "skips every n days" (but that's not intended). The expected behavior is that multi-day offsets are cleared when changing to an event that doesn't support them.