From 08afbe3cba7892c7e3f46f2c13c96a194ad9e42e Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 9 Aug 2023 13:46:18 -0500 Subject: [PATCH] Base size on density --- .../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 d609363ba295837d86a0677635f14a1b4e8c35d6..e9d7dcfa6a65fba8e1bff444f14b215abc35694d 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -1405,7 +1405,7 @@ public class ConversationFragment extends XmppFragment s.replace(lastColon, s.length(), toInsert, 0, toInsert.length()); }); setupEmojiSearch(); - emojiPopup = new PopupWindow(emojiSearchBinding.getRoot(), WindowManager.LayoutParams.MATCH_PARENT, 400); + emojiPopup = new PopupWindow(emojiSearchBinding.getRoot(), WindowManager.LayoutParams.MATCH_PARENT, (int) (activity.getResources().getDisplayMetrics().density * 150)); Handler emojiDebounce = new Handler(Looper.getMainLooper()); binding.textinput.addTextChangedListener(new TextWatcher() { @Override