mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	Fixed like count display
This commit is contained in:
		| @@ -129,7 +129,7 @@ fun Comment(comment: CommentsInfoItem) { | |||||||
|                             painter = painterResource(R.drawable.ic_thumb_up), |                             painter = painterResource(R.drawable.ic_thumb_up), | ||||||
|                             contentDescription = stringResource(R.string.detail_likes_img_view_description) |                             contentDescription = stringResource(R.string.detail_likes_img_view_description) | ||||||
|                         ) |                         ) | ||||||
|                         Text(text = comment.likeCount.toString()) |                         Text(text = Localization.likeCount(context, comment.likeCount)) | ||||||
|  |  | ||||||
|                         if (comment.isHeartedByUploader) { |                         if (comment.isHeartedByUploader) { | ||||||
|                             Image( |                             Image( | ||||||
|   | |||||||
| @@ -92,7 +92,7 @@ fun CommentRepliesHeader(comment: CommentsInfoItem) { | |||||||
|                         painter = painterResource(R.drawable.ic_thumb_up), |                         painter = painterResource(R.drawable.ic_thumb_up), | ||||||
|                         contentDescription = stringResource(R.string.detail_likes_img_view_description) |                         contentDescription = stringResource(R.string.detail_likes_img_view_description) | ||||||
|                     ) |                     ) | ||||||
|                     Text(text = comment.likeCount.toString()) |                     Text(text = Localization.likeCount(context, comment.likeCount)) | ||||||
|  |  | ||||||
|                     if (comment.isHeartedByUploader) { |                     if (comment.isHeartedByUploader) { | ||||||
|                         Image( |                         Image( | ||||||
| @@ -125,7 +125,7 @@ fun CommentRepliesHeaderPreview() { | |||||||
|     val comment = CommentsInfoItem( |     val comment = CommentsInfoItem( | ||||||
|         commentText = Description("Hello world!", Description.PLAIN_TEXT), |         commentText = Description("Hello world!", Description.PLAIN_TEXT), | ||||||
|         uploaderName = "Test", |         uploaderName = "Test", | ||||||
|         likeCount = 100, |         likeCount = 1000, | ||||||
|         isPinned = true, |         isPinned = true, | ||||||
|         isHeartedByUploader = true |         isHeartedByUploader = true | ||||||
|     ) |     ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Isira Seneviratne
					Isira Seneviratne