mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-19 20:21:45 -05:00
FolderMessageList was lowercasing and comparing two strings. Using case-insensitve comparisons is much, much cheaper
This commit is contained in:
parent
8bd2f9c260
commit
0bbdeaaa6e
@ -1219,7 +1219,7 @@ public class FolderMessageList extends ExpandableListActivity {
|
|||||||
} else if (k9.INBOX.equalsIgnoreCase(s2)) {
|
} else if (k9.INBOX.equalsIgnoreCase(s2)) {
|
||||||
return 1;
|
return 1;
|
||||||
} else
|
} else
|
||||||
return s1.toUpperCase().compareTo(s2.toUpperCase());
|
return s1.compareToIgnoreCase(s2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user