improve to align unread conversation after tapping on unread mentions button

...instead to just show it on top

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2024-09-09 16:29:52 +02:00 committed by sowjanyakch
parent 4209bfa2b4
commit 6ddf06e9fd
No known key found for this signature in database
GPG key ID: F7AA2A8B65B50220

View file

@ -1011,8 +1011,10 @@ class ConversationsListActivity :
binding.newMentionPopupBubble.hide()
binding.newMentionPopupBubble.setPopupBubbleListener {
binding.recyclerView.smoothScrollToPosition(
nextUnreadConversationScrollPosition
val layoutManager = binding.recyclerView.layoutManager as SmoothScrollLinearLayoutManager?
layoutManager?.scrollToPositionWithOffset(
nextUnreadConversationScrollPosition,
binding.recyclerView.height / 3
)
}
binding.newMentionPopupBubble.let { viewThemeUtils.material.colorMaterialButtonPrimaryFilled(it) }