Increase desired width increment to aleviate situations where certain text would still flow to multiple lines.

This commit is contained in:
Alex Hart
2025-09-19 13:07:33 -03:00
committed by Jeffrey Starke
parent 6b6877bae7
commit f39ad24cc1

View File

@@ -294,7 +294,7 @@ public class EmojiTextView extends AppCompatTextView {
int desiredWidth = (int) measuredTextWidth + getPaddingLeft() + getPaddingRight(); int desiredWidth = (int) measuredTextWidth + getPaddingLeft() + getPaddingRight();
if (widthSpecMode == MeasureSpec.AT_MOST && desiredWidth < widthSpecSize) { if (widthSpecMode == MeasureSpec.AT_MOST && desiredWidth < widthSpecSize) {
return MeasureSpec.makeMeasureSpec(desiredWidth + 1, MeasureSpec.EXACTLY); return MeasureSpec.makeMeasureSpec(desiredWidth + 3, MeasureSpec.EXACTLY);
} }
} }
} }