aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/ui
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-03 16:04:27 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-03 16:04:27 +0100
commit7d79852c8403a8882061480cfb524724b84857ec (patch)
treef5c33e5753ce99199ebc26639299549e4ff5f510 /src/de/gultsch/chat/ui
parent3d9294684c739cc54de8dfa08ad22097ca8a1811 (diff)
fixed a bug in xml parsing
Diffstat (limited to 'src/de/gultsch/chat/ui')
-rw-r--r--src/de/gultsch/chat/ui/NewConversationActivity.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/de/gultsch/chat/ui/NewConversationActivity.java b/src/de/gultsch/chat/ui/NewConversationActivity.java
index b41ca7614..bcd7fc9d0 100644
--- a/src/de/gultsch/chat/ui/NewConversationActivity.java
+++ b/src/de/gultsch/chat/ui/NewConversationActivity.java
@@ -29,6 +29,7 @@ import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.ImageView;
+import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
@@ -67,9 +68,10 @@ public class NewConversationActivity extends XmppActivity {
Collections.sort(aggregatedContacts, new Comparator<Contact>() {
+ @SuppressLint("DefaultLocale")
@Override
public int compare(Contact lhs, Contact rhs) {
- return lhs.getDisplayName().compareTo(rhs.getDisplayName());
+ return lhs.getDisplayName().toLowerCase().compareTo(rhs.getDisplayName().toLowerCase());
}
});