mirror of https://github.com/M66B/FairEmail.git
Fail-safe
This commit is contained in:
parent
f8982f70e0
commit
64e0ab7401
|
@ -803,6 +803,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
Collections.sort(items, new Comparator<EntityContact>() {
|
||||
@Override
|
||||
public int compare(EntityContact i1, EntityContact i2) {
|
||||
try {
|
||||
if (suggest_frequently) {
|
||||
int t = -i1.times_contacted.compareTo(i2.times_contacted);
|
||||
if (t != 0)
|
||||
|
@ -829,6 +830,10 @@ public class FragmentCompose extends FragmentBase {
|
|||
return n;
|
||||
|
||||
return collator.compare(i1.email, i2.email);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue