diff --git a/app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java b/app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java index 9f1d5ebdb..1229d024b 100644 --- a/app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java +++ b/app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java @@ -315,9 +315,9 @@ protected Void doInBackground(MusicService musicService) throws Throwable { SearchResult results = musicService.search(searchCritera, downloadService, null); if(results.hasArtists()) { - playFromParent(new Entry(results.getArtists().get(0))); + playFromParent(new Entry(results.getArtists().get(0)), true); } else if(results.hasAlbums()) { - playFromParent(results.getAlbums().get(0)); + playFromParent(results.getAlbums().get(0), false); } else if(results.hasSongs()) { playSong(results.getSongs().get(0)); } else { @@ -327,10 +327,10 @@ protected Void doInBackground(MusicService musicService) throws Throwable { return null; } - private void playFromParent(Entry parent) throws Exception { + private void playFromParent(Entry parent, boolean shuffle) throws Exception { List songs = new ArrayList<>(); getSongsRecursively(parent, songs); - playSongs(songs); + playSongs(songs, shuffle, false, false); } private void getSongsRecursively(Entry parent, List songs) throws Exception { MusicDirectory musicDirectory; @@ -421,7 +421,7 @@ protected Void doInBackground(MusicService musicService) throws Throwable { } private void playSong(Entry entry) { - + playSong(entry, false); } private void playSong(Entry entry, boolean resumeFromBookmark) { List entries = new ArrayList<>();