From c0a2ec26ed1bddef3317c5cc421bd2a01f086c95 Mon Sep 17 00:00:00 2001 From: Bryce Hackel <34104885+bhackel@users.noreply.github.com> Date: Wed, 21 Aug 2024 20:34:37 -0700 Subject: [PATCH] Revert bigytminiplayer --- YTLitePlus.xm | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/YTLitePlus.xm b/YTLitePlus.xm index 61b9935..e32c7ff 100644 --- a/YTLitePlus.xm +++ b/YTLitePlus.xm @@ -847,7 +847,6 @@ BOOL isTabSelected = NO; %end %end -/* // BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer %group Main %hook YTWatchMiniBarView @@ -872,20 +871,6 @@ BOOL isTabSelected = NO; } %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 %group gDisableAccountSection @@ -1019,9 +1004,9 @@ BOOL isTabSelected = NO; if (IsEnabled(@"iPhoneLayout_enabled")) { %init(giPhoneLayout); } - // if (IsEnabled(@"bigYTMiniPlayer_enabled") && (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad)) { - // %init(Main); - // } + if (IsEnabled(@"bigYTMiniPlayer_enabled") && (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad)) { + %init(Main); + } if (IsEnabled(@"hideVideoPlayerShadowOverlayButtons_enabled")) { %init(gHideVideoPlayerShadowOverlayButtons); }