mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-22 02:38:45 -04:00
Merge branch 'main' into fix-settings-crash
This commit is contained in:
Submodule Tweaks/protobuf updated: 57ba42815e...86dab71245
@@ -847,7 +847,6 @@ BOOL isTabSelected = NO;
|
|||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
/*
|
|
||||||
// BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer
|
// BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer
|
||||||
%group Main
|
%group Main
|
||||||
%hook YTWatchMiniBarView
|
%hook YTWatchMiniBarView
|
||||||
@@ -872,20 +871,6 @@ BOOL isTabSelected = NO;
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
*/
|
|
||||||
// New Big YT Mini Player - @bhackel
|
|
||||||
%hook YTColdConfig
|
|
||||||
- (BOOL)enableIosFloatingMiniplayer {
|
|
||||||
// Modify if not on iPad
|
|
||||||
return (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad) ? IsEnabled(@"bigYTMiniPlayer_enabled") : %orig;
|
|
||||||
}
|
|
||||||
- (BOOL)enableIosFloatingMiniplayerRepositioning {
|
|
||||||
return (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad) ? IsEnabled(@"bigYTMiniPlayer_enabled") : %orig;
|
|
||||||
}
|
|
||||||
- (BOOL)enableIosFloatingMiniplayerResizing {
|
|
||||||
return (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad) ? IsEnabled(@"bigYTMiniPlayer_enabled") : %orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
// App Settings Overlay Options
|
// App Settings Overlay Options
|
||||||
%group gDisableAccountSection
|
%group gDisableAccountSection
|
||||||
@@ -1019,9 +1004,9 @@ BOOL isTabSelected = NO;
|
|||||||
if (IsEnabled(@"iPhoneLayout_enabled")) {
|
if (IsEnabled(@"iPhoneLayout_enabled")) {
|
||||||
%init(giPhoneLayout);
|
%init(giPhoneLayout);
|
||||||
}
|
}
|
||||||
// if (IsEnabled(@"bigYTMiniPlayer_enabled") && (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad)) {
|
if (IsEnabled(@"bigYTMiniPlayer_enabled") && (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad)) {
|
||||||
// %init(Main);
|
%init(Main);
|
||||||
// }
|
}
|
||||||
if (IsEnabled(@"hideVideoPlayerShadowOverlayButtons_enabled")) {
|
if (IsEnabled(@"hideVideoPlayerShadowOverlayButtons_enabled")) {
|
||||||
%init(gHideVideoPlayerShadowOverlayButtons);
|
%init(gHideVideoPlayerShadowOverlayButtons);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user