Commit graph

4 commits

Author SHA1 Message Date
Peng Guanwen
2111c41836 Finish current music when Sleep Timer stops (#629)
Implement #329.
This commit adds a CheckBox to dialog_sleep_timer, and a curresponding
option `TIMER_FINISH_MUSIC` in PreferenceUtil.

In MusicService, a new flag `pendingQuit` is to indicate if it should
stop after current music stops. A new action `ACTION_PENDING_QUIT` will
set that flag.

Canceling is a little tricky. I must bind MusicService in Dialog
activity to check if `pendingQuit` is set, and show the corresponding
canceling button.
2019-01-07 21:45:33 -05:00
Karim Abou Zeid
6bbb92fc00 Updated libraries. 2016-02-07 17:07:41 +01:00
Karim Abou Zeid
7fd4226685 Massive clean up of attrs, colors and styles. Also icon and divider colors matching better the guidelines now. 2015-08-10 21:21:03 +02:00
Karim Abou Zeid
4d82b91465 Added a sleep timer 2015-07-08 01:16:19 +02:00