diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-11-30 11:46:49 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-11-30 11:46:49 -0800 |
commit | 32ee17d1a75cca8737c79937252f0a2b8694b840 (patch) | |
tree | efe9b33a620bd20d0fb2ca223280535da50e6fb4 /src/github | |
parent | f455cae997c1c127bda0950098ab2666054c154d (diff) | |
download | dsub-32ee17d1a75cca8737c79937252f0a2b8694b840.tar.gz dsub-32ee17d1a75cca8737c79937252f0a2b8694b840.tar.bz2 dsub-32ee17d1a75cca8737c79937252f0a2b8694b840.zip |
Fix search on MusicCabinet servers
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/provider/DSubSearchProvider.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/provider/DSubSearchProvider.java b/src/github/daneren2005/dsub/provider/DSubSearchProvider.java index eee48357..38cc4f4f 100644 --- a/src/github/daneren2005/dsub/provider/DSubSearchProvider.java +++ b/src/github/daneren2005/dsub/provider/DSubSearchProvider.java @@ -75,15 +75,15 @@ public class DSubSearchProvider extends ContentProvider { for (Artist artist : searchResult.getArtists()) { String icon = RESOURCE_PREFIX + R.drawable.ic_action_artist; - cursor.addRow(new Object[]{artist.getId(), artist.getName(), null, artist.getId(), artist.getName(), icon}); + cursor.addRow(new Object[]{artist.getId().hashCode(), artist.getName(), null, artist.getId(), artist.getName(), icon}); } for (MusicDirectory.Entry album : searchResult.getAlbums()) { String icon = RESOURCE_PREFIX + R.drawable.ic_action_album; - cursor.addRow(new Object[]{album.getId(), album.getTitle(), album.getArtist(), album.getId(), album.getTitle(), icon}); + cursor.addRow(new Object[]{album.getId().hashCode(), album.getTitle(), album.getArtist(), album.getId(), album.getTitle(), icon}); } for (MusicDirectory.Entry song : searchResult.getSongs()) { String icon = RESOURCE_PREFIX + R.drawable.ic_action_song; - cursor.addRow(new Object[]{song.getId(), song.getTitle(), song.getArtist(), song.getParent(), song.getTitle(), icon}); + cursor.addRow(new Object[]{song.getId().hashCode(), song.getTitle(), song.getArtist(), song.getParent(), song.getTitle(), icon}); } return cursor; } |