[Android] Audio : Fix album view when album name is the same
Alexandre Perraud
git at videolan.org
Wed Oct 28 18:41:10 CET 2015
vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed Oct 28 17:53:48 2015 +0100| [9ae52c765b61e54040e9a536d6ea9443573b9665] | committer: Alexandre Perraud
Audio : Fix album view when album name is the same
fix #15586
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=9ae52c765b61e54040e9a536d6ea9443573b9665
---
.../src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 83c0574..3e012f6 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
@@ -139,9 +139,10 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex
public void add(String title, String subTitle, MediaWrapper media, String key) {
if(title == null) return;
title = title.trim();
+ if(subTitle != null) subTitle = subTitle.trim();
String mediaKey;
if (key == null)
- mediaKey = title.toLowerCase(Locale.getDefault());
+ mediaKey = (title + subTitle).toLowerCase(Locale.getDefault());
else
mediaKey = key.trim().toLowerCase(Locale.getDefault());
if(subTitle != null) subTitle = subTitle.trim();
More information about the Android
mailing list