mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Reformat
This commit is contained in:
parent
fbe3c90d66
commit
99b55876b9
1 changed files with 7 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue