mirror of https://github.com/M66B/FairEmail.git
Refactoring
This commit is contained in:
parent
f5a2e16383
commit
a9bc7ad84b
|
@ -130,9 +130,9 @@ public class AdapterNavFolder extends RecyclerView.Adapter<AdapterNavFolder.View
|
||||||
final Collator collator = Collator.getInstance(Locale.getDefault());
|
final Collator collator = Collator.getInstance(Locale.getDefault());
|
||||||
collator.setStrength(Collator.SECONDARY); // Case insensitive, process accents etc
|
collator.setStrength(Collator.SECONDARY); // Case insensitive, process accents etc
|
||||||
|
|
||||||
Collections.sort(folders, new Comparator<EntityFolder>() {
|
Collections.sort(folders, new Comparator<TupleFolderNav>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(EntityFolder f1, EntityFolder f2) {
|
public int compare(TupleFolderNav f1, TupleFolderNav f2) {
|
||||||
int o = Boolean.compare(EntityFolder.OUTBOX.equals(f1.type), EntityFolder.OUTBOX.equals(f2.type));
|
int o = Boolean.compare(EntityFolder.OUTBOX.equals(f1.type), EntityFolder.OUTBOX.equals(f2.type));
|
||||||
if (o != 0)
|
if (o != 0)
|
||||||
return o;
|
return o;
|
||||||
|
|
Loading…
Reference in New Issue