Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Oct 7, 2024
1 parent 40f4820 commit 9d34333
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/src/main/java/eu/faircode/email/EntityFolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -837,11 +837,8 @@ public int compare(Object o1, Object o2) {
if (c != 0)
return c;

if (context == null)
return collator.compare(f1.name, f2.name);

String name1 = f1.getDisplayName(context);
String name2 = f2.getDisplayName(context);
String name1 = (context == null ? f1.name : f1.getDisplayName(context));
String name2 = (context == null ? f2.name : f2.getDisplayName(context));
return Normalizer.normalize(name1, Normalizer.Form.NFD).compareToIgnoreCase(
Normalizer.normalize(name2, Normalizer.Form.NFD));
}
Expand Down

0 comments on commit 9d34333

Please sign in to comment.