From f7fc376482f62680e879547f79171077b283e864 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 19 Dec 2023 07:52:16 +0100 Subject: [PATCH] Fix a crash when composing --- .../app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java index 34ef0c3f..d86c7c3d 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java @@ -1381,7 +1381,7 @@ public class ComposeAdapter extends RecyclerView.Adapter(holder.binding.statusContent), () -> notifyItemChanged(position)), + new WeakReference<>(holder.binding.statusContent), () -> mRecyclerView.post(() -> notifyItemChanged(position))), TextView.BufferType.SPANNABLE); holder.binding.statusContent.setMovementMethod(LongClickLinkMovementMethod.getInstance()); MastodonHelper.loadPPMastodon(holder.binding.avatar, status.account);