Fixed a critical bug in the music service. Properly hide and show the bottom bar depending on whether the playlist is empty or not.

This commit is contained in:
Karim Abou Zeid 2015-12-25 00:17:45 +01:00
commit de31396b67
2 changed files with 8 additions and 7 deletions

View file

@ -552,7 +552,8 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
public void openQueue(@Nullable final ArrayList<Song> playingQueue, final int startPosition, final boolean startPlaying) {
if (playingQueue != null && !playingQueue.isEmpty() && startPosition >= 0 && startPosition < playingQueue.size()) {
originalPlayingQueue = playingQueue;
// it is important to copy the playing queue here first as we might add/remove songs later
originalPlayingQueue = new ArrayList<>(playingQueue);
this.playingQueue = new ArrayList<>(originalPlayingQueue);
int position = startPosition;