Skip to content

Commit

Permalink
fix(YT Music - Hide action bar component): Hide Like/Dislike button n…
Browse files Browse the repository at this point in the history
…ot worked in v6.35+

YT-Advanced/ReX-patches#57
  • Loading branch information
YT-Advanced committed Feb 8, 2024
1 parent 86c2cc8 commit 5217b20
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public static void hideLikeDislikeButton(View view) {
);
}

public static void hideLikeDislikeButton(boolean original) {
return SettingsEnum.HIDE_ACTION_BUTTON_LIKE_DISLIKE.getBoolean() || original;
}

public static void hookDownloadButton(View view) {
if (!SettingsEnum.HOOK_ACTION_BUTTON_DOWNLOAD.getBoolean()) {
return;
Expand Down

2 comments on commit 5217b20

@rufusin
Copy link

@rufusin rufusin commented on 5217b20 Feb 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public static void hideLikeDislikeButton(boolean original)

to correct
public static boolean hideLikeDislikeButton(boolean original)

@YT-Advanced
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah thanks

Please sign in to comment.