hide scroll-to-bottom upon click

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Andy Scherzinger 2023-02-09 18:07:54 +01:00 committed by Marcel Hibbe
parent 5b4d0d16af
commit 163883181a
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -673,7 +673,11 @@ class ChatController(args: Bundle) :
} }
} }
binding?.scrollDownButton?.setOnClickListener { binding?.messagesListView?.scrollToPosition(0) } binding?.scrollDownButton?.setOnClickListener {
binding?.messagesListView?.scrollToPosition(0)
it.visibility = View.GONE
}
binding?.let { viewThemeUtils.material.colorMaterialButtonPrimaryTonal(it.scrollDownButton) } binding?.let { viewThemeUtils.material.colorMaterialButtonPrimaryTonal(it.scrollDownButton) }
binding?.let { viewThemeUtils.material.colorMaterialButtonPrimaryFilled(it.popupBubbleView) } binding?.let { viewThemeUtils.material.colorMaterialButtonPrimaryFilled(it.popupBubbleView) }