Added clear playing queue menu item to now playing screen.

This commit is contained in:
Karim Abou Zeid 2015-12-27 23:02:55 +01:00
commit 1816c264a9
5 changed files with 26 additions and 3 deletions

View file

@ -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);