[Android] Fix audio media sort

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


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

Fix audio media sort

(cherry picked from commit 34882582deaf759b1f12b0282d0a09548237bf1d)

> https://code.videolan.org/videolan/vlc-android/commit/21a837fa16f7c94c02e6e4ab2a474d23ec32e8f9
---

 .../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