[Android] albums/songs: fix lint warning

unknown git at videolan.org
Sun May 18 21:01:07 CEST 2014


vlc-ports/android | branch: master | unknown <ZT5032 at GA002232D.user.par.gaselys.com> | Fri May 16 16:29:33 2014 +0200| [8721fc5270dc3e11f24b41b1555cdc38cb3e1155] | committer: Sébastien Toque

albums/songs: fix lint warning

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=8721fc5270dc3e11f24b41b1555cdc38cb3e1155
---

 .../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 2c219f8..8ab1600 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
@@ -23,6 +23,7 @@ package org.videolan.vlc.gui.audio;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
+import java.util.Locale;
 import java.util.Map;
 
 import org.videolan.vlc.BitmapCache;
@@ -105,7 +106,7 @@ public class AudioBrowserListAdapter extends BaseAdapter {
 
         for (int i = 0; i < mItems.size(); ++i) {
             String title = mItems.get(i).mTitle;
-            char firstChar = title.toUpperCase().charAt(0);
+            char firstChar = title.toUpperCase(Locale.ENGLISH).charAt(0);
 
             if (Character.isLetter(firstChar)) {
                 if (firstSeparator || firstChar != prevFirstChar) {



More information about the Android mailing list