From 1f122efaeee4d9c9c842032250d1313a208b4c48 Mon Sep 17 00:00:00 2001 From: Arne Date: Wed, 20 Nov 2024 18:48:04 +0100 Subject: [PATCH] Fix appearing quick buttons when typing ":" --- .../java/eu/siacs/conversations/ui/ConversationFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index 2442ad95b..421f50e31 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -4495,7 +4495,7 @@ public class ConversationFragment extends XmppFragment final SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(activity); ViewGroup.LayoutParams params = binding.threadIdenticonLayout.getLayoutParams(); if (identiconWidth < 0) identiconWidth = params.width; - if (hasAttachments || binding.textinput.getText().toString().replaceFirst("^(\\w|[, ])+:\\s*", "").length() > 0) { + if (hasAttachments || !binding.textinput.getText().toString().isEmpty()) { binding.conversationViewPager.setCurrentItem(0); params.width = conversation.getThread() == null ? 0 : identiconWidth; binding.quickButtons.setVisibility(GONE);