Sort on sender: show email/name

This commit is contained in:
M66B
2022-07-03 07:37:06 +02:00
parent 2acf49e955
commit cdb3a782f0
2 changed files with 5 additions and 3 deletions

View File

@@ -7040,7 +7040,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
this.check_blocklist = prefs.getBoolean("check_blocklist", false);
this.email_format = ("sender".equals(sort)
? MessageHelper.AddressFormat.EMAIL_ONLY
? MessageHelper.AddressFormat.EMAIL_NAME
: MessageHelper.getAddressFormat(context));
this.prefer_contact = prefs.getBoolean("prefer_contact", false);
this.only_contact = prefs.getBoolean("only_contact", false);
@@ -7711,7 +7711,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (!sort.equals(this.sort)) {
this.sort = sort;
this.email_format = ("sender".equals(sort)
? MessageHelper.AddressFormat.EMAIL_ONLY
? MessageHelper.AddressFormat.EMAIL_NAME
: MessageHelper.getAddressFormat(context));
properties.refresh();
// Needed to redraw item decorators / add/remove size