Fix bubble entrance coordinates

This commit is contained in:
andrew 2023-05-09 15:10:03 +09:30
parent 99cb10f5be
commit 4469d9754a

View File

@ -1109,12 +1109,11 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
} }
}) })
val contentBounds = Rect() val topLeft = intArrayOf(0, 0).also { visibleMessageView.messageContentView.getLocationInWindow(it) }
visibleMessageView.messageContentView.getGlobalVisibleRect(contentBounds)
val selectedConversationModel = SelectedConversationModel( val selectedConversationModel = SelectedConversationModel(
messageContentBitmap, messageContentBitmap,
contentBounds.left.toFloat(), topLeft[0].toFloat(),
contentBounds.top.toFloat(), topLeft[1].toFloat(),
visibleMessageView.messageContentView.width, visibleMessageView.messageContentView.width,
message.isOutgoing, message.isOutgoing,
visibleMessageView.messageContentView visibleMessageView.messageContentView