mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -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,8 +1093,16 @@ public class FolderList extends K9ListActivity {
|
||||
return -1;
|
||||
} else if (Email.INBOX.equalsIgnoreCase(s2)) {
|
||||
return 1;
|
||||
} else
|
||||
return s1.compareTo(s2);
|
||||
} else {
|
||||
int ret = s1.compareToIgnoreCase(s2);
|
||||
if (ret != 0) {
|
||||
return ret;
|
||||
}
|
||||
else {
|
||||
return s1.compareTo(s2);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// constructor for an empty object for comparisons
|
||||
|
Loading…
Reference in New Issue
Block a user