From 0861becc5659cd674f620a9a639ebca9651259cb Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 15 Dec 2023 14:15:45 +0100 Subject: [PATCH] Hyper links clickable in original messages when replying --- .../fedilab/android/mastodon/ui/drawer/ComposeAdapter.java | 4 +++- 1 file changed, 3 insertions(+), 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 be09cc97..948dc3d1 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 @@ -120,6 +120,7 @@ import app.fedilab.android.mastodon.client.entities.app.StatusDraft; import app.fedilab.android.mastodon.exception.DBException; import app.fedilab.android.mastodon.helper.ComposeHelper; import app.fedilab.android.mastodon.helper.Helper; +import app.fedilab.android.mastodon.helper.LongClickLinkMovementMethod; import app.fedilab.android.mastodon.helper.MastodonHelper; import app.fedilab.android.mastodon.helper.ThemeHelper; import app.fedilab.android.mastodon.imageeditor.EditImageActivity; @@ -1344,8 +1345,9 @@ public class ComposeAdapter extends RecyclerView.Adapter(holder.binding.statusContent), null), + new WeakReference<>(holder.binding.statusContent), () -> notifyItemChanged(position)), TextView.BufferType.SPANNABLE); + holder.binding.statusContent.setMovementMethod(LongClickLinkMovementMethod.getInstance()); MastodonHelper.loadPPMastodon(holder.binding.avatar, status.account); if (status.account != null) { holder.binding.displayName.setText(