mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-21 03:28:47 +00:00
Increase desired width increment to aleviate situations where certain text would still flow to multiple lines.
This commit is contained in:
committed by
Jeffrey Starke
parent
6b6877bae7
commit
f39ad24cc1
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user