Skip to content

Commit

Permalink
Merge pull request YTLitePlus#370 from bhackel/revert-miniplayer
Browse files Browse the repository at this point in the history
Revert bigytminiplayer
  • Loading branch information
bhackel authored Aug 22, 2024
2 parents 7797875 + c0a2ec2 commit 3f24f64
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions YTLitePlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,6 @@ BOOL isTabSelected = NO;
%end
%end

/*
// BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer
%group Main
%hook YTWatchMiniBarView
Expand All @@ -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
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 3f24f64

Please sign in to comment.