mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-22 02:58:45 -04:00
Revert "New Option & Auto-Start Certain Tab"
This commit is contained in:
@@ -535,45 +535,6 @@ static NSData *cellDividerData = nil;
|
|||||||
%end
|
%end
|
||||||
|
|
||||||
// Miscellaneous
|
// Miscellaneous
|
||||||
%group gAutoHideHomeBar // Auto-Hide Home Bar - @arichornlover
|
|
||||||
%hook UIViewController
|
|
||||||
- (BOOL)prefersHomeIndicatorAutoHidden {
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
%end
|
|
||||||
|
|
||||||
BOOL selectedTabIndex = NO;
|
|
||||||
|
|
||||||
%hook YTPivotBarViewController // https://github.com/LillieH001/YouTube-Reborn
|
|
||||||
- (void)viewDidAppear:(BOOL)animated {
|
|
||||||
%orig();
|
|
||||||
if ([[NSUserDefaults standardUserDefaults] integerForKey:@"kStartupPageIntVTwo"]) {
|
|
||||||
int selectedTab = [[NSUserDefaults standardUserDefaults] integerForKey:@"kStartupPageIntVTwo"];
|
|
||||||
if (selectedTab == 0 && !selectedTabIndex) {
|
|
||||||
[self selectItemWithPivotIdentifier:@"FEwhat_to_watch"];
|
|
||||||
selectedTabIndex = YES;
|
|
||||||
}
|
|
||||||
if (selectedTab == 1 && !selectedTabIndex) {
|
|
||||||
[self selectItemWithPivotIdentifier:@"FEexplore"];
|
|
||||||
selectedTabIndex = YES;
|
|
||||||
}
|
|
||||||
if (selectedTab == 2 && !selectedTabIndex) {
|
|
||||||
[self selectItemWithPivotIdentifier:@"FEshorts"];
|
|
||||||
selectedTabIndex = YES;
|
|
||||||
}
|
|
||||||
if (selectedTab == 3 && !selectedTabIndex) {
|
|
||||||
[self selectItemWithPivotIdentifier:@"FEsubscriptions"];
|
|
||||||
selectedTabIndex = YES;
|
|
||||||
}
|
|
||||||
if (selectedTab == 4 && !selectedTabIndex) {
|
|
||||||
[self selectItemWithPivotIdentifier:@"FElibrary"];
|
|
||||||
selectedTabIndex = YES;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%group giPadLayout // https://github.com/LillieH001/YouTube-Reborn
|
%group giPadLayout // https://github.com/LillieH001/YouTube-Reborn
|
||||||
%hook UIDevice
|
%hook UIDevice
|
||||||
- (long long)userInterfaceIdiom {
|
- (long long)userInterfaceIdiom {
|
||||||
@@ -660,9 +621,6 @@ BOOL selectedTabIndex = NO;
|
|||||||
if (IsEnabled(@"stockVolumeHUD_enabled")) {
|
if (IsEnabled(@"stockVolumeHUD_enabled")) {
|
||||||
%init(gStockVolumeHUD);
|
%init(gStockVolumeHUD);
|
||||||
}
|
}
|
||||||
if (IsEnabled(@"autoHideHomeBar_enabled")) {
|
|
||||||
%init(gAutoHideHomeBar);
|
|
||||||
}
|
|
||||||
if (IsEnabled(@"disableAccountSection_enabled")) {
|
if (IsEnabled(@"disableAccountSection_enabled")) {
|
||||||
%init(gDisableAccountSection);
|
%init(gDisableAccountSection);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user