This commit is contained in:
oSumAtrIX 2024-04-06 20:18:53 +02:00
parent fb0b21dbbc
commit 0c3a3400bc
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 5 additions and 5 deletions

View File

@ -7,12 +7,12 @@ import app.revanced.integrations.youtube.shared.NavigationBar;
import app.revanced.integrations.youtube.shared.PlayerType;
@SuppressWarnings("unused")
public final class SuggestionsShelvesFilter extends Filter {
public final class HorizontalShelvesFilter extends Filter {
public SuggestionsShelvesFilter() {
public HorizontalShelvesFilter() {
addPathCallbacks(
new StringFilterGroup(
Settings.HIDE_SUGGESTIONS_SHELVES,
Settings.HIDE_HORIZONTAL_SHELVES,
"horizontal_video_shelf.eml",
"horizontal_shelf.eml"
)
@ -31,7 +31,7 @@ public final class SuggestionsShelvesFilter extends Filter {
private static boolean shouldHideShelves() {
// Only filter if the library tab is not selected.
// This check is important as the suggestion shelf layout is used for the library tab playlists.
// This check is important as the shelf layout is used for the library tab playlists.
return !NavigationBar.NavigationButton.libraryOrYouTabIsSelected()
// But if the player is opened while library is selected,
// then still filter any recommendations below the player.

View File

@ -77,7 +77,7 @@ public class Settings extends BaseSettings {
public static final BooleanSetting HIDE_ALBUM_CARDS = new BooleanSetting("revanced_hide_album_cards", FALSE, true);
public static final BooleanSetting HIDE_ARTIST_CARDS = new BooleanSetting("revanced_hide_artist_cards", FALSE);
public static final BooleanSetting HIDE_AUTOPLAY_BUTTON = new BooleanSetting("revanced_hide_autoplay_button", TRUE, true);
public static final BooleanSetting HIDE_SUGGESTIONS_SHELVES = new BooleanSetting("revanced_hide_suggestions_shelves", TRUE);
public static final BooleanSetting HIDE_HORIZONTAL_SHELVES = new BooleanSetting("revanced_hide_horizontal_shelves", TRUE);
public static final BooleanSetting HIDE_CAPTIONS_BUTTON = new BooleanSetting("revanced_hide_captions_button", FALSE);
public static final BooleanSetting HIDE_CAST_BUTTON = new BooleanSetting("revanced_hide_cast_button", TRUE, true);
public static final BooleanSetting HIDE_CHANNEL_BAR = new BooleanSetting("revanced_hide_channel_bar", FALSE);