mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Restore case-insensitive sort, but fall back on case sensitive, just
in case the case-insensitive version returns that the two folders are equal during the insensitive comparison.
This commit is contained in:
parent
770032d960
commit
339c8e247b
@ -1093,9 +1093,17 @@ public class FolderList extends K9ListActivity {
|
|||||||
return -1;
|
return -1;
|
||||||
} else if (Email.INBOX.equalsIgnoreCase(s2)) {
|
} else if (Email.INBOX.equalsIgnoreCase(s2)) {
|
||||||
return 1;
|
return 1;
|
||||||
} else
|
} else {
|
||||||
|
int ret = s1.compareToIgnoreCase(s2);
|
||||||
|
if (ret != 0) {
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
else {
|
||||||
return s1.compareTo(s2);
|
return s1.compareTo(s2);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// constructor for an empty object for comparisons
|
// constructor for an empty object for comparisons
|
||||||
public FolderInfoHolder() {
|
public FolderInfoHolder() {
|
||||||
|
Loading…
Reference in New Issue
Block a user