mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Merge pull request #530 from bhackel/fix/fullscreen-actions
Fix hide fullscreen actions
This commit is contained in:
commit
d95ea2246b
1 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue