mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 11:15:51 +00:00
Recycle message body
This commit is contained in:
parent
bd952eafad
commit
66ad968672
1 changed files with 4 additions and 0 deletions
|
@ -5173,6 +5173,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
public void onViewRecycled(@NonNull ViewHolder holder) {
|
||||
if (holder.ibAvatar != null)
|
||||
holder.ibAvatar.setImageDrawable(null);
|
||||
if (holder.tvBody != null)
|
||||
holder.tvBody.setText(null);
|
||||
if (holder.wvBody instanceof WebView)
|
||||
((WebView) holder.wvBody).loadDataWithBaseURL(null, "", "text/html", StandardCharsets.UTF_8.name(), null);
|
||||
}
|
||||
|
||||
void setSelectionTracker(SelectionTracker<Long> selectionTracker) {
|
||||
|
|
Loading…
Reference in a new issue