File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -554,21 +554,21 @@ BOOL isAd(YTIElementRenderer *self) {
554554%group hideFullscreenActions
555555%hook YTMainAppVideoPlayerOverlayViewController
556556- (BOOL )isFullscreenActionsEnabled {
557- // This didn't work on its own - weird
558- return IS_ENABLED (@" hideFullscreenActions_enabled" ) ? NO : %orig ;
557+ return NO ;
559558}
560559%end
561560%hook YTFullscreenActionsView
562561- (BOOL )enabled {
563- // Attempt 2
564- return IS_ENABLED (@" hideFullscreenActions_enabled" ) ? NO : %orig ;
562+ return NO ;
565563}
566- - (void )removeFromSuperview {
567- // Attempt 3
568- if (IS_ENABLED ( @" hideFullscreenActions_enabled " ) ) {
564+ - (void )layoutSubviews {
565+ // Check if already removed from superview
566+ if (self. superview ) {
569567 [self removeFromSuperview ];
570568 }
571- %orig ;
569+ self.hidden = YES ;
570+ self.frame = CGRectZero;
571+ %orig ;
572572}
573573%end
574574%end
You can’t perform that action at this time.
0 commit comments