[Android] Fix audio media sort

Geoffrey Métais git at videolan.org
Tue Dec 8 10:48:48 CET 2015


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec  8 10:48:32 2015 +0100| [34882582deaf759b1f12b0282d0a09548237bf1d] | committer: Geoffrey Métais

Fix audio media sort

> https://code.videolan.org/videolan/vlc-android/commit/34882582deaf759b1f12b0282d0a09548237bf1d
---

 .../src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
index e7a585b..cc9e87d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
@@ -167,17 +167,17 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex
                         case TYPE_ALBUMS:
                             title = MediaUtils.getMediaAlbum(mContext, media);
                             subTitle = MediaUtils.getMediaReferenceArtist(mContext, media);
-                            key = null;
+                            key = title.trim();
                             break;
                         case TYPE_ARTISTS:
                             title = MediaUtils.getMediaReferenceArtist(mContext, media);
                             subTitle = null;
-                            key = null;
+                            key = title.trim();
                             break;
                         case TYPE_GENRES:
                             title = MediaUtils.getMediaGenre(mContext, media);
                             subTitle = null;
-                            key = null;
+                            key = title.trim();
                             break;
                         case TYPE_PLAYLISTS:
                             title = media.getTitle();



More information about the Android mailing list