Skip to content

Commit

Permalink
fix: CJK display error in EditText
Browse files Browse the repository at this point in the history
Signed-off-by: Next Alone <[email protected]>
  • Loading branch information
NextAlone committed Dec 3, 2024
1 parent b5b27d6 commit 6b87b45
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6b87b45

Please sign in to comment.