Merge pull request #6337 from litetex/fix-broken-yt-liked-comments

[YouTube] Fix broken likes in comments
pull/6421/head
bopol 2021-06-04 22:32:48 +02:00 zatwierdzone przez GitHub
commit 332b90d6c1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -183,7 +183,7 @@ dependencies {
/** NewPipe libraries **/ /** NewPipe libraries **/
// You can use a local version by uncommenting a few lines in settings.gradle // You can use a local version by uncommenting a few lines in settings.gradle
implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751' implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'
implementation 'com.github.TeamNewPipe:NewPipeExtractor:v0.21.3' implementation 'com.github.TeamNewPipe:NewPipeExtractor:ff11c2df2a22cc10d9fd7e59538d10ca7ccbaffb'
/** Checkstyle **/ /** Checkstyle **/
checkstyle "com.puppycrawl.tools:checkstyle:${checkstyleVersion}" checkstyle "com.puppycrawl.tools:checkstyle:${checkstyleVersion}"

Wyświetl plik

@ -137,7 +137,10 @@ public class CommentsMiniInfoItemHolder extends InfoItemHolder {
} }
if (item.getLikeCount() >= 0) { if (item.getLikeCount() >= 0) {
itemLikesCountView.setText(String.valueOf(item.getLikeCount())); itemLikesCountView.setText(
Localization.shortCount(
itemBuilder.getContext(),
item.getLikeCount()));
} else { } else {
itemLikesCountView.setText("-"); itemLikesCountView.setText("-");
} }