mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 19:00:26 +01:00
Fix outgoing quote over media.
This commit is contained in:
committed by
Greyson Parrelli
parent
ce1983a3b1
commit
2412f6f63a
@@ -1993,6 +1993,19 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
|
||||
|
||||
colorizerProjections.addAll(projections);
|
||||
} else if (hasThumbnail(messageRecord) && mediaThumb != null) {
|
||||
if (hasQuote(messageRecord) && quoteView != null) {
|
||||
Projection quote = Projection.relativeToParent(coordinateRoot, bodyBubble, bodyBubbleCorners).translateX(bodyBubble.getTranslationX());
|
||||
int quoteViewTop = (int) quote.getY();
|
||||
int mediaTop = (int) mediaThumb.getY();
|
||||
|
||||
colorizerProjections.add(
|
||||
quote.insetBottom(quote.getHeight() - (mediaTop - quoteViewTop))
|
||||
.scale(bodyBubble.getScaleX())
|
||||
.translateX(translationX)
|
||||
.translateY(translationY)
|
||||
);
|
||||
}
|
||||
|
||||
colorizerProjections.add(
|
||||
bodyBubbleToRoot.insetTop(mediaThumb.getHeight())
|
||||
.scale(bodyBubble.getScaleX())
|
||||
|
||||
Reference in New Issue
Block a user