Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement sleep timer (#157) #1140

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Wiguwbe
Copy link

@Wiguwbe Wiguwbe commented Jul 30, 2022

Creates a "Sleep timer" in the menu (three dots on the playing bar), with a timepicker,

The actual sleep timer is handled in the PlaybackService. Will not go to the next song if the sleep timer has ended.

Probably not the cleanest/best implementation, let me know.

@Wiguwbe
Copy link
Author

Wiguwbe commented Jul 31, 2022

Changed to use two NumberPicker s, added a countdown textview.
Changed the activity to a BackActionBar

@adrian-bl
Copy link
Member

I think this would be better off using a the already existing idle timeout code: I don't like how this interacts with gapless updates.

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.

None yet

2 participants