Merge "Fixed the padding when the sender name was empty" into pi-dev

This commit is contained in:
Selim Cinek
2018-05-07 19:51:59 +00:00
committed by Android (Google) Code Review

View File

@@ -147,7 +147,7 @@ public class MessagingGroup extends LinearLayout implements MessagingLinearLayou
setAvatar(sender.getIcon()); setAvatar(sender.getIcon());
} }
mAvatarView.setVisibility(VISIBLE); mAvatarView.setVisibility(VISIBLE);
mSenderName.setVisibility(VISIBLE); mSenderName.setVisibility(TextUtils.isEmpty(nameOverride) ? GONE : VISIBLE);
mTextColor = getNormalTextColor(); mTextColor = getNormalTextColor();
mSendingTextColor = calculateSendingTextColor(); mSendingTextColor = calculateSendingTextColor();
} }