mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +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
|
%group hideFullscreenActions
|
||||||
%hook YTMainAppVideoPlayerOverlayViewController
|
%hook YTMainAppVideoPlayerOverlayViewController
|
||||||
- (BOOL)isFullscreenActionsEnabled {
|
- (BOOL)isFullscreenActionsEnabled {
|
||||||
// Attempt 1
|
return NO;
|
||||||
return IS_ENABLED(@"hideFullscreenActions_enabled") ? NO : %orig;
|
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%hook YTFullscreenActionsView
|
%hook YTFullscreenActionsView
|
||||||
- (BOOL)enabled {
|
- (BOOL)enabled {
|
||||||
// Attempt 2
|
return NO;
|
||||||
return IS_ENABLED(@"hideFullscreenActions_enabled") ? NO : %orig;
|
|
||||||
}
|
}
|
||||||
- (void)layoutSubviews {
|
- (void)layoutSubviews {
|
||||||
// Attempt 3
|
// Check if already removed from superview
|
||||||
if (IS_ENABLED(@"hideFullscreenActions_enabled")) {
|
if (self.superview) {
|
||||||
// Check if already removed from superview
|
[self removeFromSuperview];
|
||||||
if (self.superview) {
|
|
||||||
[self removeFromSuperview];
|
|
||||||
}
|
|
||||||
self.hidden = YES;
|
|
||||||
self.frame = CGRectZero;
|
|
||||||
}
|
}
|
||||||
|
self.hidden = YES;
|
||||||
|
self.frame = CGRectZero;
|
||||||
%orig;
|
%orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue