mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-25 06:25:40 +03:00
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:
parent
4209bfa2b4
commit
6ddf06e9fd
1 changed files with 4 additions and 2 deletions
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue