Shake to extend active sleep timer is not working #7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
The shake to extend sleep timer behavior is not working during audiobook playback.
When a sleep timer is active, shaking the device should trigger BookWave's existing sleep-timer extension behavior. Currently, shaking the device does not extend the timer as expected.
Expected behavior
When all of the following are true:
then a qualifying shake gesture should extend the current sleep timer using BookWave's existing configured extension behavior.
The gesture should not create a second independent timer or reset unrelated playback state.
Investigation notes
Primary ownership: Playback & Lifecycle Agent
The implementation should also involve the Android/system boundary where device motion/sensor events are observed.
Check the full path from:
Pay particular attention to whether the sensor listener is only alive while a Compose/UI surface is foregrounded. Sleep-timer behavior needs to remain correct while playback continues with the app backgrounded or the screen off, subject to Android platform constraints.
Acceptance criteria
User report
Observed on a real device during normal audiobook playback: shaking the device while a sleep timer is active does not extend the timer.