Skip to content

Commit

Permalink
Merge pull request #530 from bhackel/fix/fullscreen-actions
Browse files Browse the repository at this point in the history
Fix hide fullscreen actions
  • Loading branch information
arichornlover authored Apr 10, 2024
2 parents 7967b96 + 99b5587 commit d95ea22
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Sources/uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -554,21 +554,21 @@ BOOL isAd(YTIElementRenderer *self) {
%group hideFullscreenActions
%hook YTMainAppVideoPlayerOverlayViewController
- (BOOL)isFullscreenActionsEnabled {
// This didn't work on its own - weird
return IS_ENABLED(@"hideFullscreenActions_enabled") ? NO : %orig;
return NO;
}
%end
%hook YTFullscreenActionsView
- (BOOL)enabled {
// Attempt 2
return IS_ENABLED(@"hideFullscreenActions_enabled") ? NO : %orig;
return NO;
}
- (void)removeFromSuperview {
// Attempt 3
if (IS_ENABLED(@"hideFullscreenActions_enabled")) {
- (void)layoutSubviews {
// Check if already removed from superview
if (self.superview) {
[self removeFromSuperview];
}
%orig;
self.hidden = YES;
self.frame = CGRectZero;
%orig;
}
%end
%end
Expand Down

0 comments on commit d95ea22

Please sign in to comment.