mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 20:18:36 +00:00
@@ -1061,7 +1061,8 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
|
|||||||
if (hasExtraText(messageRecord)) {
|
if (hasExtraText(messageRecord)) {
|
||||||
bodyText.setOverflowText(getLongMessageSpan(messageRecord));
|
bodyText.setOverflowText(getLongMessageSpan(messageRecord));
|
||||||
int trimmedLength = TextUtils.getTrimmedLength(styledText);
|
int trimmedLength = TextUtils.getTrimmedLength(styledText);
|
||||||
bodyText.setMaxLength(trimmedLength - 2);
|
int maxLength = Math.min(MessageRecordUtil.MAX_BODY_DISPLAY_LENGTH, trimmedLength - 2);
|
||||||
|
bodyText.setMaxLength(maxLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (messageRecord.isOutgoing()) {
|
if (messageRecord.isOutgoing()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user