aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@users.noreply.github.com>2018-09-11 17:26:14 -0700
committerGitHub <noreply@github.com>2018-09-11 17:26:14 -0700
commit19895fc4b760793c739dd056d1de1b20df92d820 (patch)
tree5567866a2cda528263822952ca28685a3bda5eee
parent1bf94236ba8a5ebd6c3f62a24c1d5b9f904867a1 (diff)
parent6eb8fcb14e96d866bbecad82a78383698ab7af0e (diff)
downloaddsub-19895fc4b760793c739dd056d1de1b20df92d820.tar.gz
dsub-19895fc4b760793c739dd056d1de1b20df92d820.tar.bz2
dsub-19895fc4b760793c739dd056d1de1b20df92d820.zip
Merge pull request #883 from glennguy/edge
AA voice search improvements
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java10
1 files changed, 5 insertions, 5 deletions
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 9f1d5ebd..1229d024 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 @@ public class RemoteControlClientLP extends RemoteControlClientBase {
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 @@ public class RemoteControlClientLP extends RemoteControlClientBase {
return null;
}
- private void playFromParent(Entry parent) throws Exception {
+ private void playFromParent(Entry parent, boolean shuffle) throws Exception {
List<Entry> songs = new ArrayList<>();
getSongsRecursively(parent, songs);
- playSongs(songs);
+ playSongs(songs, shuffle, false, false);
}
private void getSongsRecursively(Entry parent, List<Entry> songs) throws Exception {
MusicDirectory musicDirectory;
@@ -421,7 +421,7 @@ public class RemoteControlClientLP extends RemoteControlClientBase {
}
private void playSong(Entry entry) {
-
+ playSong(entry, false);
}
private void playSong(Entry entry, boolean resumeFromBookmark) {
List<Entry> entries = new ArrayList<>();