feat(YouTube - Shorts components): Add Restore old player layout setting (YouTube 18.29.38 ~ 19.16.39)

This commit is contained in:
inotia00
2024-12-21 14:07:30 +09:00
parent 749900f6f8
commit 2b77e46f5e
6 changed files with 37 additions and 1 deletions

View File

@ -207,4 +207,8 @@ public class ShortsPatch {
);
}
public static boolean restoreShortsOldPlayerLayout() {
return !Settings.RESTORE_SHORTS_OLD_PLAYER_LAYOUT.get();
}
}

View File

@ -492,6 +492,7 @@ public class Settings extends BaseSettings {
public static final BooleanSetting HIDE_SHORTS_NAVIGATION_BAR = new BooleanSetting("revanced_hide_shorts_navigation_bar", FALSE, true);
public static final IntegerSetting SHORTS_NAVIGATION_BAR_HEIGHT_PERCENTAGE = new IntegerSetting("revanced_shorts_navigation_bar_height_percentage", 45, true, parent(HIDE_SHORTS_NAVIGATION_BAR));
public static final BooleanSetting REPLACE_CHANNEL_HANDLE = new BooleanSetting("revanced_replace_channel_handle", FALSE, true);
public static final BooleanSetting RESTORE_SHORTS_OLD_PLAYER_LAYOUT = new BooleanSetting("revanced_restore_shorts_old_player_layout", FALSE, true);
// PreferenceScreen: Swipe controls
public static final BooleanSetting ENABLE_SWIPE_BRIGHTNESS = new BooleanSetting("revanced_enable_swipe_brightness", TRUE, true);