fix to show avatar, fix onClick listener

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-04-02 21:41:27 +02:00
parent 5fc69201fe
commit 906c1f7529
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -352,7 +352,7 @@ class ChatActivity :
if (conversationUser?.userId != "?" &&
CapabilitiesUtilNew.hasSpreedFeatureCapability(conversationUser, "mention-flag")
) {
findViewById<View>(R.id.toolbar)?.setOnClickListener { v -> showConversationInfoScreen() }
binding.chatToolbar.setOnClickListener { v -> showConversationInfoScreen() }
}
val smileyButton = binding?.messageInputView?.findViewById<ImageButton>(R.id.smileyButton)
@ -948,7 +948,7 @@ class ChatActivity :
val target = object : Target {
private fun setIcon(drawable: Drawable?) {
actionBar?.let {
supportActionBar?.let {
val avatarSize = (it.height / TOOLBAR_AVATAR_RATIO).roundToInt()
if (drawable != null && avatarSize > 0) {