-
-
Notifications
You must be signed in to change notification settings - Fork 3
unable to set alarm for all hours when using "sunset (24)" #21
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Depending on the "Hours Begin" setting, the alarm picker doesn't allow selecting all available hours. When configured to "sunset (24)" it isn't possible to select hours 13-24.
To Reproduce
Natural Hour->Options->Hours Begin->sunset (24)Natural Hour->Set Alarm- Slide picker to
of the night; the selection is reverted (expected; there are no "night hours" in this mode). - Slide the picker from
1to24; the hours stop at 12 so its not possible to select hours 13-24.
This works:
Natural Hour->Options->Hours Begin->sunrise & sunset (12)Natural Hour->Set Alarm- Slide picker to
of the night; the selection is allowed. - Slide the picker from
1to12; all hours can be selected.
This fails:
Natural Hour->Options->Hours Begin->sunset (24)Suntimes Alarms->Add Alarm->Event->Natural Hour- Add an alarm (any hour)
Natural Hour->Options->Hours Begin->sunrise & sunset (12)Suntimes Alarms->Add Alarm->Event->Natural Hour- Slide picker to
of the night; the selection is immediately switched back to "of the day".
Expected behavior
The picker should allow selecting all available hours when configured to "sunset (24)", and should allow toggling the "of the night" when configured to "sunrise & sunset (12)".
Version Info:
- NaturalHour Version:
v0.2.0 - Suntimes Version:
v0.14.11 - Android Version: 12
- Device Model: emulator
Additional context
The third example is due to the alarm being previously configured to "sunset (24)". When the picker is launched a second time, the previous alarm (a "sunset (24)" alarm) is automatically selected.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working