mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-08 15:42:58 +00: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
@ -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 New Issue
Block a user