Garbage collect contact info tasks

This commit is contained in:
M66B
2022-02-11 12:53:17 +01:00
parent f674a4b14d
commit 41ecc99d46

View File

@@ -1448,8 +1448,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ContactInfo[] info = ContactInfo.getCached(context,
message.account, message.folderType, selector, addresses);
if (info == null) {
if (taskContactInfo != null)
if (taskContactInfo != null) {
taskContactInfo.cancel(context);
taskContactInfo = null;
}
Bundle aargs = new Bundle();
aargs.putLong("id", message.id);