Fix merge

This commit is contained in:
Niels Andriesse 2021-06-30 14:51:24 +10:00
parent 24b5fca7f8
commit dea1aeec57

View File

@ -89,10 +89,10 @@ class VisibleMessageContentView : LinearLayout {
val bodyTextView = VisibleMessageContentView.getBodyTextView(context, message) val bodyTextView = VisibleMessageContentView.getBodyTextView(context, message)
ViewUtil.setPaddingTop(bodyTextView, 0) ViewUtil.setPaddingTop(bodyTextView, 0)
mainContainer.addView(bodyTextView) mainContainer.addView(bodyTextView)
onContentClick = { rect -> onContentClick = { event ->
val r = Rect() val r = Rect()
quoteView.getGlobalVisibleRect(r) quoteView.getGlobalVisibleRect(r)
if (r.contains(rect)) { if (r.contains(event.rawX.roundToInt(), event.rawY.roundToInt())) {
delegate?.scrollToMessageIfPossible(quote.id) delegate?.scrollToMessageIfPossible(quote.id)
} }
} }