mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Make ContactItem search case insensitive
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@5500 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -100,7 +100,8 @@ public class JContactItemField extends JPanel {
|
||||
|
||||
final List<ContactItem> validItems = new ArrayList<ContactItem>();
|
||||
for (ContactItem contactItem : items) {
|
||||
if (contactItem.getNickname().startsWith(typedItem)) {
|
||||
String nickname = contactItem.getNickname().toLowerCase();
|
||||
if (nickname.startsWith(typedItem.toLowerCase())) {
|
||||
validItems.add(contactItem);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user