Skip to content

Commit

Permalink
Update CommentsMiniInfoItemHolder.java
Browse files Browse the repository at this point in the history
  • Loading branch information
litetex committed May 20, 2021
1 parent c7660b8 commit ac7462c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.schabi.newpipe.error.ErrorActivity;
import org.schabi.newpipe.extractor.InfoItem;
import org.schabi.newpipe.extractor.comments.CommentsInfoItem;
import org.schabi.newpipe.extractor.utils.Utils;
import org.schabi.newpipe.info_list.InfoItemBuilder;
import org.schabi.newpipe.local.history.HistoryRecordManager;
import org.schabi.newpipe.util.CommentTextOnTouchListener;
Expand Down Expand Up @@ -136,8 +137,8 @@ public void updateFromItem(final InfoItem infoItem,
ellipsize();
}

if (item.getLikeCount() >= 0) {
itemLikesCountView.setText(String.valueOf(item.getLikeCount()));
if (!Utils.isBlank(item.getTextualVoteCount())) {
itemLikesCountView.setText(item.getTextualVoteCount());
} else {
itemLikesCountView.setText("-");
}
Expand Down

0 comments on commit ac7462c

Please sign in to comment.