1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Cancel avatar task on detach view

This commit is contained in:
M66B 2022-05-13 08:51:20 +02:00
parent 246751ca8b
commit ec040aae7b

View file

@ -7706,6 +7706,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
@Override
public void onViewDetachedFromWindow(@NonNull ViewHolder holder) {
holder.cowner.stop();
if (holder.taskContactInfo != null) {
holder.taskContactInfo.cancel(context);
holder.taskContactInfo = null;
}
}
@Override