mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
fix(comment): only show highlight for owner
Fixes a problem where, due to the way recycler views work, the show highlight was not reset properly, causing the highlight to be displayed on the wrong users.
This commit is contained in:
parent
7a69650125
commit
27c175648b
@ -73,9 +73,7 @@ class CommentsAdapter(
|
||||
val comment = comments[position]
|
||||
holder.binding.apply {
|
||||
commentAuthor.text = comment.author
|
||||
if (comment.channelOwner) {
|
||||
commentAuthor.setBackgroundResource(R.drawable.comment_channel_owner_bg)
|
||||
}
|
||||
commentAuthor.setBackgroundResource(if (comment.channelOwner) R.drawable.comment_channel_owner_bg else 0)
|
||||
commentInfos.text = TextUtils.SEPARATOR + comment.commentedTime
|
||||
|
||||
commentText.movementMethod = LinkMovementMethodCompat.getInstance()
|
||||
|
Loading…
Reference in New Issue
Block a user