use height from typingIndicator layout

no need to define it redundant...

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-05-22 14:32:37 +02:00
parent 231cfef8c3
commit add5e518e1
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -392,12 +392,10 @@ class ChatActivity :
}
}
val typingIndicatorHeight = DisplayUtils.convertDpToPixel(20f, context)
runOnUiThread {
if (participantNames.size > 0) {
binding.typingIndicatorWrapper.animate()
.translationY(binding.messageInputView.y - typingIndicatorHeight)
.translationY(binding.messageInputView.y - binding.typingIndicator.height)
.setInterpolator(AccelerateDecelerateInterpolator())
.duration = TYPING_INDICATOR_ANIMATION_DURATION
} else {