|
|
@ -803,6 +803,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
Collections.sort(items, new Comparator<EntityContact>() {
|
|
|
|
Collections.sort(items, new Comparator<EntityContact>() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public int compare(EntityContact i1, EntityContact i2) {
|
|
|
|
public int compare(EntityContact i1, EntityContact i2) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
if (suggest_frequently) {
|
|
|
|
if (suggest_frequently) {
|
|
|
|
int t = -i1.times_contacted.compareTo(i2.times_contacted);
|
|
|
|
int t = -i1.times_contacted.compareTo(i2.times_contacted);
|
|
|
|
if (t != 0)
|
|
|
|
if (t != 0)
|
|
|
@ -829,6 +830,10 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
return n;
|
|
|
|
return n;
|
|
|
|
|
|
|
|
|
|
|
|
return collator.compare(i1.email, i2.email);
|
|
|
|
return collator.compare(i1.email, i2.email);
|
|
|
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
|
|
|
|
Log.e(ex);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|