mirror of https://github.com/M66B/FairEmail.git
Sort on sender: default address format
This commit is contained in:
parent
4553966262
commit
9c759e310f
|
@ -7065,9 +7065,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
this.check_mx = prefs.getBoolean("check_mx", false);
|
||||
this.check_blocklist = prefs.getBoolean("check_blocklist", false);
|
||||
|
||||
this.email_format = ("sender".equals(sort)
|
||||
? MessageHelper.AddressFormat.EMAIL_NAME
|
||||
: MessageHelper.getAddressFormat(context));
|
||||
this.email_format = MessageHelper.getAddressFormat(context);
|
||||
this.prefer_contact = prefs.getBoolean("prefer_contact", false);
|
||||
this.only_contact = prefs.getBoolean("only_contact", false);
|
||||
this.distinguish_contacts = prefs.getBoolean("distinguish_contacts", false);
|
||||
|
@ -7737,9 +7735,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
void setSort(String sort) {
|
||||
if (!sort.equals(this.sort)) {
|
||||
this.sort = sort;
|
||||
this.email_format = ("sender".equals(sort)
|
||||
? MessageHelper.AddressFormat.EMAIL_NAME
|
||||
: MessageHelper.getAddressFormat(context));
|
||||
properties.refresh();
|
||||
// Needed to redraw item decorators / add/remove size
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue