Skip to content

Commit 332b90d

Browse files
authored
Merge pull request #6337 from litetex/fix-broken-yt-liked-comments
[YouTube] Fix broken likes in comments
2 parents db2e03e + 8ed8b94 commit 332b90d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ dependencies {
183183
/** NewPipe libraries **/
184184
// You can use a local version by uncommenting a few lines in settings.gradle
185185
implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'
186-
implementation 'com.github.TeamNewPipe:NewPipeExtractor:v0.21.3'
186+
implementation 'com.github.TeamNewPipe:NewPipeExtractor:ff11c2df2a22cc10d9fd7e59538d10ca7ccbaffb'
187187

188188
/** Checkstyle **/
189189
checkstyle "com.puppycrawl.tools:checkstyle:${checkstyleVersion}"

app/src/main/java/org/schabi/newpipe/info_list/holder/CommentsMiniInfoItemHolder.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ public void updateFromItem(final InfoItem infoItem,
137137
}
138138

139139
if (item.getLikeCount() >= 0) {
140-
itemLikesCountView.setText(String.valueOf(item.getLikeCount()));
140+
itemLikesCountView.setText(
141+
Localization.shortCount(
142+
itemBuilder.getContext(),
143+
item.getLikeCount()));
141144
} else {
142145
itemLikesCountView.setText("-");
143146
}

0 commit comments

Comments
 (0)