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:
parent
246751ca8b
commit
ec040aae7b
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue