1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-17 07:30:16 -05:00

FolderMessageList was lowercasing and comparing two strings. Using case-insensitve comparisons is much, much cheaper

This commit is contained in:
Jesse Vincent 2008-11-02 23:18:38 +00:00
parent 8bd2f9c260
commit 0bbdeaaa6e

View File

@ -1219,7 +1219,7 @@ public class FolderMessageList extends ExpandableListActivity {
} else if (k9.INBOX.equalsIgnoreCase(s2)) {
return 1;
} else
return s1.toUpperCase().compareTo(s2.toUpperCase());
return s1.compareToIgnoreCase(s2);
}
}