[Android] DirectoryAdapter: compare case-insensitive
Edward Wang
git at videolan.org
Sun Jun 24 18:25:23 CEST 2012
android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Jun 24 12:24:55 2012 -0400| [a827c743a911d7a6fd709c93fd5a81445fde3f03] | committer: Edward Wang
DirectoryAdapter: compare case-insensitive
Pointed-out-by: Sébastien Toque <xilasz at gmail.com>
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=a827c743a911d7a6fd709c93fd5a81445fde3f03
---
vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
index a7b1902..55ce104 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
@@ -110,7 +110,7 @@ public class DirectoryAdapter extends BaseAdapter {
else if(!(this.isFile) && arg0.isFile)
return -1;
else
- return this.name.compareTo(arg0.name);
+ return String.CASE_INSENSITIVE_ORDER.compare(this.name, arg0.name);
}
}
More information about the Android
mailing list