Implement automatic nightly sleep schedule (#33) #63
Loading…
Reference in a new issue
No description provided.
Delete branch "mcp/issue-33-nightly-sleep-schedule"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements Forgejo issue #33 / BW-SLEEP-01 as a Playback & Lifecycle-owned feature.
Example end behavior: with 22:00–07:00 and a 15-minute default, playback at 06:46 arms the ordinary timer; at 07:00 that automatic timer is cancelled and playback continues.
Ownership
There remains exactly one timer/countdown owner:
SleepTimerController. The schedule is civil-window policy and persistence around that owner, not a second timer.No AlarmManager, WorkManager polling, schedule-only service, independent Compose timer or notification-owned countdown is introduced.
Time semantics
start == endis an empty automatic window.Manual precedence
Surfaces
Full player:
Media notification/system controls:
SleepTimerController.state;Android host rendering still requires the documented device acceptance pass; JVM/verifyDebug is not claimed as proof of System UI or Bluetooth behavior.
Verification
Focused policy, owner, notification-layout and real FullPlayer Compose tests are included. Final Forgejo pull-request verification will be run with the repository-required forced rerun before review.
Device runbook:
docs/device-test-sleep-schedule.md.No unrelated Android automation (#23/#26/#27), downloads, routing, dependency or toolchain work is included.
dde2734037to786ddb7f1c