Merge pull request #2754 from nextcloud/bugfix/noid/hideScrollToBottom

hide scroll-to-bottom upon click
This commit is contained in:
Marcel Hibbe 2023-02-10 10:57:26 +01:00 committed by GitHub
commit 257dc3236d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.colorMaterialButtonPrimaryFilled(it.popupBubbleView) }