fix a UI bug of link preview

pull/376/head
Ryan ZHAO 4 years ago
parent d669e8a0b1
commit aabfa5817c

@ -500,7 +500,7 @@ public class ConversationItem extends TapJackingProofLinearLayout
private void adjustMarginsIfNeeded(MessageRecord messageRecord) {
LinearLayout.LayoutParams bodyTextLayoutParams = (LinearLayout.LayoutParams)bodyText.getLayoutParams();
bodyTextLayoutParams.topMargin = 0;
if (hasOnlyThumbnail(messageRecord)) {
if (hasOnlyThumbnail(messageRecord) || hasLinkPreview(messageRecord)) {
int topPadding = 0;
if (groupSenderHolder.getVisibility() == VISIBLE) {
topPadding = (int)getResources().getDimension(R.dimen.medium_spacing);

Loading…
Cancel
Save