aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-11-14 09:39:36 -0800
committerScott Jackson <daneren2005@gmail.com>2014-11-14 09:39:36 -0800
commite13410c787495b65a68e4d222327fead8bf232af (patch)
treeb2de9146be281ce376aa07f70a9c83de659b44ca
parent8e22392eefbbb83dd5a464c4dab2d72e22ca3291 (diff)
downloaddsub-e13410c787495b65a68e4d222327fead8bf232af.tar.gz
dsub-e13410c787495b65a68e4d222327fead8bf232af.tar.bz2
dsub-e13410c787495b65a68e4d222327fead8bf232af.zip
#422 Fix clicking song suggestion while tag browsing
-rw-r--r--src/github/daneren2005/dsub/provider/DSubSearchProvider.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/provider/DSubSearchProvider.java b/src/github/daneren2005/dsub/provider/DSubSearchProvider.java
index 01f08565..30490f17 100644
--- a/src/github/daneren2005/dsub/provider/DSubSearchProvider.java
+++ b/src/github/daneren2005/dsub/provider/DSubSearchProvider.java
@@ -147,7 +147,13 @@ public class DSubSearchProvider extends ContentProvider {
cursor.addRow(new Object[]{entry.getId().hashCode(), entry.getTitle(), entry.getArtist(), entry.getId(), entry.getTitle(), icon});
} else {
String icon = RESOURCE_PREFIX + R.drawable.ic_action_song;
- cursor.addRow(new Object[]{entry.getId().hashCode(), entry.getTitle(), entry.getArtist(), "so-" + entry.getParent(), entry.getTitle(), icon});
+ String id;
+ if(Util.isTagBrowsing(getContext())) {
+ id = entry.getAlbumId();
+ } else {
+ id = entry.getParent();
+ }
+ cursor.addRow(new Object[]{entry.getId().hashCode(), entry.getTitle(), entry.getArtist(), "so-" + id, entry.getTitle(), icon});
}
}
}