mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 19:56:00 +00:00
Constrain ConversationItem's width to AudioView.
When text was also shown, the text's width was used when it was wider than the AudioView.
This commit is contained in:
committed by
Alex Hart
parent
e41c73f293
commit
d1eab086f1
@@ -468,6 +468,12 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
|
||||
activeFooter.getLayoutParams().width = availableWidth;
|
||||
needsMeasure = true;
|
||||
}
|
||||
|
||||
int desiredWidth = audioViewStub.get().getMeasuredWidth() + ViewUtil.getLeftMargin(audioViewStub.get()) + ViewUtil.getRightMargin(audioViewStub.get());
|
||||
if (bodyBubble.getMeasuredWidth() != desiredWidth) {
|
||||
bodyBubble.getLayoutParams().width = desiredWidth;
|
||||
needsMeasure = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (needsMeasure) {
|
||||
|
||||
Reference in New Issue
Block a user