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:
parent
af4987b679
commit
de31396b67
2 changed files with 8 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue