Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
bhackel committed Apr 10, 2024
1 parent fbe3c90 commit 99b5587
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions Sources/uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -554,25 +554,20 @@ BOOL isAd(YTIElementRenderer *self) {
%group hideFullscreenActions
%hook YTMainAppVideoPlayerOverlayViewController
- (BOOL)isFullscreenActionsEnabled {
// Attempt 1
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)layoutSubviews {
// Attempt 3
if (IS_ENABLED(@"hideFullscreenActions_enabled")) {
// Check if already removed from superview
if (self.superview) {
[self removeFromSuperview];
}
self.hidden = YES;
self.frame = CGRectZero;
// Check if already removed from superview
if (self.superview) {
[self removeFromSuperview];
}
self.hidden = YES;
self.frame = CGRectZero;
%orig;
}
%end
Expand Down

0 comments on commit 99b5587

Please sign in to comment.