From 2d2542833825ab67a0c1d32960399396a1909f2c Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Sun, 30 Jul 2023 21:25:07 -0500 Subject: [PATCH] Update Settings.xm --- Settings.xm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Settings.xm b/Settings.xm index 1cc5229..ceb5237 100644 --- a/Settings.xm +++ b/Settings.xm @@ -65,6 +65,16 @@ extern NSBundle *uYouPlusBundle(); # pragma mark - VideoPlayer YTSettingsSectionItem *videoPlayerGroup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"VIDEO_PLAYER_OPTIONS") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) { NSArray *rows = @[ + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Enable Portrait Fullscreen") + titleDescription:LOC(@"Enables Portrait Fullscreen on the iPhone YouTube App.") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"portraitFullscreen_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"portraitFullscreen_enabled"]; + return YES; + } + settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"DISABLE_DOUBLE_TAP_TO_SEEK") titleDescription:LOC(@"DISABLE_DOUBLE_TAP_TO_SEEK_DESC") accessibilityIdentifier:nil