[Android] BrowserAdapter: kill a warning

Edward Wang git at videolan.org
Sat Dec 29 00:25:10 CET 2012


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Fri Dec 28 18:24:43 2012 -0500| [7d106f3644113f0f1f7e024dd3d3ac8d3c94f29e] | committer: Edward Wang

BrowserAdapter: kill a warning

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

 vlc-android/src/org/videolan/vlc/gui/BrowserAdapter.java |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/BrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/BrowserAdapter.java
index 4420728..05bec38 100644
--- a/vlc-android/src/org/videolan/vlc/gui/BrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/BrowserAdapter.java
@@ -132,8 +132,7 @@ public class BrowserAdapter extends ArrayAdapter<File>
 
     @Override
     public int compare(File file1, File file2) {
-        return file1.getName().toUpperCase().compareTo(
-                file2.getName().toUpperCase());
+        return String.CASE_INSENSITIVE_ORDER.compare(file1.getName(), file2.getName());
     }
 
     private String getVisibleName(File file) {



More information about the Android mailing list