|
|
@ -1305,7 +1305,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
message.folderUnified && outgoing) ||
|
|
|
|
message.folderUnified && outgoing) ||
|
|
|
|
EntityFolder.isOutgoing(message.folderInheritedType));
|
|
|
|
EntityFolder.isOutgoing(message.folderInheritedType));
|
|
|
|
String selector = (reverse ? null : message.bimi_selector);
|
|
|
|
String selector = (reverse ? null : message.bimi_selector);
|
|
|
|
boolean dmarc = (!reverse && Boolean.TRUE.equals(message.dmarc));
|
|
|
|
|
|
|
|
Address[] addresses = (reverse ? message.to : (message.isForwarder() ? message.submitter : message.from));
|
|
|
|
Address[] addresses = (reverse ? message.to : (message.isForwarder() ? message.submitter : message.from));
|
|
|
|
Address[] senders = ContactInfo.fillIn(
|
|
|
|
Address[] senders = ContactInfo.fillIn(
|
|
|
|
reverse && !show_recipients ? message.to : message.senders, prefer_contact, only_contact);
|
|
|
|
reverse && !show_recipients ? message.to : message.senders, prefer_contact, only_contact);
|
|
|
@ -1679,7 +1678,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
|
|
|
|
|
|
|
// Contact info
|
|
|
|
// Contact info
|
|
|
|
ContactInfo[] info = ContactInfo.getCached(context,
|
|
|
|
ContactInfo[] info = ContactInfo.getCached(context,
|
|
|
|
message.account, message.folderType, selector, dmarc, addresses);
|
|
|
|
message.account, message.folderType, selector, addresses);
|
|
|
|
if (info == null) {
|
|
|
|
if (info == null) {
|
|
|
|
if (taskContactInfo != null) {
|
|
|
|
if (taskContactInfo != null) {
|
|
|
|
taskContactInfo.cancel(context);
|
|
|
|
taskContactInfo.cancel(context);
|
|
|
@ -1691,7 +1690,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
aargs.putLong("account", message.account);
|
|
|
|
aargs.putLong("account", message.account);
|
|
|
|
aargs.putString("folderType", message.folderType);
|
|
|
|
aargs.putString("folderType", message.folderType);
|
|
|
|
aargs.putString("selector", selector);
|
|
|
|
aargs.putString("selector", selector);
|
|
|
|
aargs.putBoolean("dmarc", dmarc);
|
|
|
|
|
|
|
|
aargs.putSerializable("addresses", addresses);
|
|
|
|
aargs.putSerializable("addresses", addresses);
|
|
|
|
|
|
|
|
|
|
|
|
taskContactInfo = new SimpleTask<ContactInfo[]>() {
|
|
|
|
taskContactInfo = new SimpleTask<ContactInfo[]>() {
|
|
|
@ -1700,9 +1698,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
long account = args.getLong("account");
|
|
|
|
long account = args.getLong("account");
|
|
|
|
String folderType = args.getString("folderType");
|
|
|
|
String folderType = args.getString("folderType");
|
|
|
|
String selector = args.getString("selector");
|
|
|
|
String selector = args.getString("selector");
|
|
|
|
boolean dmarc = args.getBoolean("dmarc");
|
|
|
|
|
|
|
|
Address[] addresses = (Address[]) args.getSerializable("addresses");
|
|
|
|
Address[] addresses = (Address[]) args.getSerializable("addresses");
|
|
|
|
return ContactInfo.get(context, account, folderType, selector, dmarc, addresses);
|
|
|
|
return ContactInfo.get(context, account, folderType, selector, addresses);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -7602,7 +7599,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
args.putLong("account", message.account);
|
|
|
|
args.putLong("account", message.account);
|
|
|
|
args.putString("folderType", message.folderType);
|
|
|
|
args.putString("folderType", message.folderType);
|
|
|
|
args.putString("selector", message.bimi_selector);
|
|
|
|
args.putString("selector", message.bimi_selector);
|
|
|
|
args.putBoolean("dmarc", Boolean.TRUE.equals(message.dmarc));
|
|
|
|
|
|
|
|
args.putSerializable("addresses", message.from);
|
|
|
|
args.putSerializable("addresses", message.from);
|
|
|
|
|
|
|
|
|
|
|
|
new SimpleTask<ContactInfo[]>() {
|
|
|
|
new SimpleTask<ContactInfo[]>() {
|
|
|
@ -7611,9 +7607,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
long account = args.getLong("account");
|
|
|
|
long account = args.getLong("account");
|
|
|
|
String folderType = args.getString("folderType");
|
|
|
|
String folderType = args.getString("folderType");
|
|
|
|
String selector = args.getString("selector");
|
|
|
|
String selector = args.getString("selector");
|
|
|
|
boolean dmarc = args.getBoolean("dmarc");
|
|
|
|
|
|
|
|
Address[] addresses = (Address[]) args.getSerializable("addresses");
|
|
|
|
Address[] addresses = (Address[]) args.getSerializable("addresses");
|
|
|
|
return ContactInfo.get(context, account, folderType, selector, dmarc, addresses);
|
|
|
|
return ContactInfo.get(context, account, folderType, selector, addresses);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|