Summary
Allow users to reset the sleep timer using a headphone media button (Bluetooth or wired), providing a low-effort alternative to the existing shake-to-reset gesture.
Problem
Shaking a phone in bed requires physical effort, finding the device in the dark, and unwanted movement right as the user is drifting off to sleep. A single headphone button click allows resetting the timer without moving or looking at a screen.
Proposed Flow
- Audio Warning: When 10–15 seconds remain on the sleep timer, play a subtle audio cue or fade out the volume.
- Button Intercept: During this grace period, pressing the headphone play/pause button resets the timer instead of stopping playback.
- Seamless Resume: Playback volume restores immediately, and the timer extends for the configured duration.
Settings Integration
Under Settings > Sleep Timer:
- Reset Trigger:
[ Shake ] | [ Headphone Button ] | [ Both ]
- Reset Duration: Duration added per trigger (e.g., +15 min or Reset to original).
- Warning Window: Length of the audio cue/fade period (e.g., 15 seconds).
Acceptance Criteria
Summary
Allow users to reset the sleep timer using a headphone media button (Bluetooth or wired), providing a low-effort alternative to the existing shake-to-reset gesture.
Problem
Shaking a phone in bed requires physical effort, finding the device in the dark, and unwanted movement right as the user is drifting off to sleep. A single headphone button click allows resetting the timer without moving or looking at a screen.
Proposed Flow
Settings Integration
Under Settings > Sleep Timer:
[ Shake ]|[ Headphone Button ]|[ Both ]Acceptance Criteria