Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
fix(YouTube - Return YouTube Dislike): Dislike counts showing in views
Browse files Browse the repository at this point in the history
  • Loading branch information
anddea committed May 27, 2024
1 parent b14f20c commit 83bf7b2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ public static CharSequence onCharSequenceLoaded(@NonNull Object conversionContex
public static String onRollingNumberLoaded(@NonNull Object conversionContext,
@NonNull String original) {
try {
if (!conversionContext.toString().contains("video_action_bar.eml|")) {
return original;
}
CharSequence replacement = onLithoTextLoaded(conversionContext, original, true);
if (!replacement.toString().equals(original)) {
rollingNumberSpan = replacement;
Expand Down Expand Up @@ -353,7 +356,7 @@ public static CharSequence updateRollingNumber(TextView view, CharSequence origi
if (replacement == null) {
// User enabled RYD while a video was open,
// or user opened/closed a Short while a regular video was opened.
Logger.printDebug(() -> "Cannot update rolling number (field is null");
Logger.printDebug(() -> "Cannot update rolling number (field is null)");
removeRollingNumberPatchChanges(view);
return original;
}
Expand Down

0 comments on commit 83bf7b2

Please sign in to comment.