Skip to content

Switch an alarm on when its time is changed - #5

Merged
TargetCrafter merged 1 commit into
mainfrom
feat/enable-alarm-on-time-change
Sep 4, 2026
Merged

TargetCrafter merged 1 commit into
mainfrom
feat/enable-alarm-on-time-change

Conversation

@TargetCrafter

Copy link
Copy Markdown
Owner

Why

Setting a time is how you set an alarm. Picking a new one on a switched-off alarm and leaving it off just means it silently doesn't ring — which is never what was meant. The stock Clock app enables on edit for the same reason, so this isn't a surprising behaviour to adopt.

Behaviour

Path Result
Quick time popup (tap the time on a row) Always enables — changing the time is the only thing it does
Full editor sheet Enables only when the time actually changed

The distinction on the editor is deliberate: that sheet has no on/off switch of its own (it lives on the list row, and the sheet's only switches are Vibrate and Fade-in), so saving after merely renaming or re-tagging a switched-off alarm must not quietly turn it on. AlarmEditorViewModel keeps the time the alarm had when the sheet opened and compares against it.

Nothing here can override a deliberate off — the only way to switch an alarm off is the list row, and that still wins unless you change the time afterwards.

Not verified

Uncompiled here — ./gradlew assembleDebug first.


Generated by Claude Code

Setting a time is how you set an alarm, so picking a new one on a
switched-off alarm and leaving it off just means it silently doesn't
ring. The stock Clock app enables on edit for the same reason.

The quick time popup always enables, since changing the time is the only
thing it does. The full editor sheet enables only when the time actually
changed: that sheet has no on/off switch of its own - it lives on the
list row - so saving after merely renaming a switched-off alarm must not
quietly turn it on.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01C7x8v5c5Lu29PBWy1LdfCe
@TargetCrafter
TargetCrafter merged commit bfe4435 into main Sep 4, 2026
4 checks passed
@TargetCrafter
TargetCrafter deleted the feat/enable-alarm-on-time-change branch September 4, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants