1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 11:02:35 +01:00

Fixed like count display

This commit is contained in:
Isira Seneviratne 2024-06-20 09:12:40 +05:30
parent 5841eaa6d7
commit 0ec81c9e52
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ fun Comment(comment: CommentsInfoItem) {
painter = painterResource(R.drawable.ic_thumb_up),
contentDescription = stringResource(R.string.detail_likes_img_view_description)
)
Text(text = comment.likeCount.toString())
Text(text = Localization.likeCount(context, comment.likeCount))
if (comment.isHeartedByUploader) {
Image(

View File

@ -92,7 +92,7 @@ fun CommentRepliesHeader(comment: CommentsInfoItem) {
painter = painterResource(R.drawable.ic_thumb_up),
contentDescription = stringResource(R.string.detail_likes_img_view_description)
)
Text(text = comment.likeCount.toString())
Text(text = Localization.likeCount(context, comment.likeCount))
if (comment.isHeartedByUploader) {
Image(
@ -125,7 +125,7 @@ fun CommentRepliesHeaderPreview() {
val comment = CommentsInfoItem(
commentText = Description("Hello world!", Description.PLAIN_TEXT),
uploaderName = "Test",
likeCount = 100,
likeCount = 1000,
isPinned = true,
isHeartedByUploader = true
)