From e51764ae424149269eceb911caed026aad547446 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 13 Nov 2022 11:26:26 +0100 Subject: [PATCH] Fix issue #442 - mentions starting with a "(" --- .../main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java index f64235b28..05ec415db 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java @@ -895,7 +895,7 @@ public class ComposeAdapter extends RecyclerView.Adapter= currentCursorPosition) { - String[] searchA = oldContent.substring(0, currentCursorPosition).split("\\s+@|^@"); + String[] searchA = oldContent.substring(0, currentCursorPosition).split("\\s+@|^@|\\(+@"); if (searchA.length > 0) { final String search = searchA[searchA.length - 1]; holder.binding.content.setOnItemClickListener((parent, view, position, id) -> {