Skip to content

feat(timer): allow dial adjustment while timer is running#27

Merged
Xitee1 merged 1 commit into
mainfrom
feat/dial-adjust-while-running
Apr 18, 2026
Merged

feat(timer): allow dial adjustment while timer is running#27
Xitee1 merged 1 commit into
mainfrom
feat/dial-adjust-while-running

Conversation

@Xitee1
Copy link
Copy Markdown
Owner

@Xitee1 Xitee1 commented Apr 18, 2026

Summary

  • Dial is now interactive while a timer is running — drag to set the remaining time directly (previously only +/- worked).
  • New ACTION_SET_MINUTES on SleepTimerService applies an absolute remaining-minutes value; TimerViewModel.commitMinutes routes by phase (RUNNING → service, else persist preset).
  • Drag start seeds dial state from the current remaining minutes so the gesture picks up at the right position without a continuous sync loop.

Test plan

  • Idle: dial still drags smoothly, release persists the new preset.
  • Running: drag the dial, the centre time + "Endet um" preview track the drag; releasing applies the new remaining time.
  • Running: +/- buttons still step as before.
  • After a running-drag, the idle preset is unchanged (next start uses the original preset, not the dragged value).
  • Haptic ticks fire during drag in both states.

🤖 Generated with Claude Code

Previously the dial was disabled during a running timer and only the +/-
buttons could change the remaining time. The dial is now interactive in
both states: dragging seeds from the current remaining minutes and, on
release, dispatches an absolute set to the service.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Xitee1 Xitee1 merged commit e06fc3a into main Apr 18, 2026
1 check passed
@Xitee1 Xitee1 deleted the feat/dial-adjust-while-running branch April 18, 2026 22:20
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.

1 participant