mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
minor cleanup after merge
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
9c0ea73b5d
commit
eb961b0452
@ -68,9 +68,6 @@ class ShowReactionsDialog(
|
|||||||
|
|
||||||
private var adapter: ReactionsAdapter? = null
|
private var adapter: ReactionsAdapter? = null
|
||||||
|
|
||||||
// @Inject
|
|
||||||
// lateinit var ncApi: NcApi
|
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
binding = DialogMessageReactionsBinding.inflate(layoutInflater)
|
binding = DialogMessageReactionsBinding.inflate(layoutInflater)
|
||||||
@ -92,7 +89,7 @@ class ShowReactionsDialog(
|
|||||||
firstEmoji = emoji
|
firstEmoji = emoji
|
||||||
}
|
}
|
||||||
|
|
||||||
var emojiView = EmojiTextView(activity)
|
val emojiView = EmojiTextView(activity)
|
||||||
emojiView.setEmojiSize(DisplayUtils.convertDpToPixel(EMOJI_SIZE, context).toInt())
|
emojiView.setEmojiSize(DisplayUtils.convertDpToPixel(EMOJI_SIZE, context).toInt())
|
||||||
emojiView.text = emoji
|
emojiView.text = emoji
|
||||||
|
|
||||||
@ -108,21 +105,8 @@ class ShowReactionsDialog(
|
|||||||
|
|
||||||
emojiView.setOnClickListener {
|
emojiView.setOnClickListener {
|
||||||
updateParticipantsForEmoji(chatMessage, emoji)
|
updateParticipantsForEmoji(chatMessage, emoji)
|
||||||
emojiView.setBackgroundColor(context.resources.getColor(R.color.colorPrimary))
|
// emojiView.setBackgroundColor(context.resources.getColor(R.color.colorPrimary))
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Add proper implementation
|
|
||||||
adapter?.list?.add(
|
|
||||||
ReactionItem(
|
|
||||||
ReactionVoter(
|
|
||||||
ReactionVoter.ReactionActorType.USERS,
|
|
||||||
"marcel",
|
|
||||||
"Marcel",
|
|
||||||
0
|
|
||||||
),
|
|
||||||
emoji
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
updateParticipantsForEmoji(chatMessage, firstEmoji)
|
updateParticipantsForEmoji(chatMessage, firstEmoji)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user