Added clear playing queue menu item to now playing screen.
This commit is contained in:
parent
d7f57bb1f1
commit
1816c264a9
5 changed files with 26 additions and 3 deletions
|
|
@ -673,6 +673,14 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
|
|||
notifyChange(QUEUE_CHANGED);
|
||||
}
|
||||
|
||||
public void clearQueue() {
|
||||
playingQueue.clear();
|
||||
originalPlayingQueue.clear();
|
||||
|
||||
setPosition(-1);
|
||||
notifyChange(QUEUE_CHANGED);
|
||||
}
|
||||
|
||||
public void playSongAt(final int position) {
|
||||
// handle this on the handlers thread to avoid blocking the ui thread
|
||||
playerHandler.removeMessages(PLAY_SONG);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue