Skip to content

Keep minus button active while timer runs#3

Merged
Xitee1 merged 1 commit into
mainfrom
keep-minus-button-running
Apr 18, 2026
Merged

Keep minus button active while timer runs#3
Xitee1 merged 1 commit into
mainfrom
keep-minus-button-running

Conversation

@Xitee1
Copy link
Copy Markdown
Owner

@Xitee1 Xitee1 commented Apr 18, 2026

Summary

  • Minus button now stays visible after the timer starts so a running session can be shortened, not only extended.
  • Pressing minus while running subtracts 5 minutes via a new ACTION_SUBTRACT_FIVE service action; the button is disabled when less than 5 minutes remain.
  • SleepTimerService.subtractFiveMinutes() is a no-op if remaining ≤ 5 min and keeps totalDurationMillis consistent with remainingMillis.

Test plan

  • Start a 15 min timer, tap minus once → countdown jumps to ~10 min and notification updates.
  • Tap minus repeatedly until < 5 min remain → button becomes greyed out.
  • Tap plus while running → still adds 5 minutes as before.
  • Stop timer and adjust via minus/plus in idle state → unchanged behavior.

🤖 Generated with Claude Code

Previously the minus button was hidden once the timer started, so users
could only extend but not shorten a running session. It now stays
visible and subtracts 5 minutes from the running countdown, disabling
itself when less than 5 minutes remain.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Xitee1 Xitee1 merged commit 10b6daa into main Apr 18, 2026
1 check passed
@Xitee1 Xitee1 deleted the keep-minus-button-running branch April 18, 2026 16:04
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