From 664e6ead70d7401b2e5dbeb45d7ea12fc7251a53 Mon Sep 17 00:00:00 2001 From: Next Alone <12210746+NextAlone@users.noreply.github.com> Date: Wed, 4 Dec 2024 01:06:00 +0800 Subject: [PATCH] fix: CJK display error in EditText Signed-off-by: Next Alone <12210746+NextAlone@users.noreply.github.com> --- .../main/java/org/telegram/ui/Components/EditTextEffects.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/EditTextEffects.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/EditTextEffects.java index 1e88d92341..5feabc714b 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Components/EditTextEffects.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/EditTextEffects.java @@ -85,7 +85,9 @@ public class EditTextEffects extends EditText { public EditTextEffects(Context context) { super(context); - + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) { + setLocalePreferredLineHeightForMinimumUsed(false); + } if (Looper.getMainLooper().getThread() == Thread.currentThread()) { clickDetector = new SpoilersClickDetector(this, spoilers, this::onSpoilerClicked); }