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]
|
val comment = comments[position]
|
||||||
holder.binding.apply {
|
holder.binding.apply {
|
||||||
commentAuthor.text = comment.author
|
commentAuthor.text = comment.author
|
||||||
if (comment.channelOwner) {
|
commentAuthor.setBackgroundResource(if (comment.channelOwner) R.drawable.comment_channel_owner_bg else 0)
|
||||||
commentAuthor.setBackgroundResource(R.drawable.comment_channel_owner_bg)
|
|
||||||
}
|
|
||||||
commentInfos.text = TextUtils.SEPARATOR + comment.commentedTime
|
commentInfos.text = TextUtils.SEPARATOR + comment.commentedTime
|
||||||
|
|
||||||
commentText.movementMethod = LinkMovementMethodCompat.getInstance()
|
commentText.movementMethod = LinkMovementMethodCompat.getInstance()
|
||||||
|
Loading…
Reference in New Issue
Block a user