mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 02:32:10 +00:00
Fix crashing?
This commit is contained in:
parent
30a6fdb6fc
commit
1387109ebc
1 changed files with 7 additions and 5 deletions
|
|
@ -639,17 +639,19 @@ static NSString *accessGroupID() {
|
|||
|
||||
// Hide Fullscreen Button - @arichornlover
|
||||
%hook YTInlinePlayerBarContainerView
|
||||
- (void)setFullscreenButtonDisabled:(BOOL)fullscreenButtonDisabled {
|
||||
%orig;
|
||||
- (void)layoutSubviews {
|
||||
%orig;
|
||||
if (IS_ENABLED(@"disableFullscreenButton_enabled")) {
|
||||
if (self.exitFullscreenButton && self.enterFullscreenButton) {
|
||||
if (self.exitFullscreenButton) {
|
||||
[self.exitFullscreenButton removeFromSuperview];
|
||||
[self.enterFullscreenButton removeFromSuperview];
|
||||
self.exitFullscreenButton.frame = CGRectZero;
|
||||
}
|
||||
if (self.enterFullscreenButton) {
|
||||
[self.enterFullscreenButton removeFromSuperview];
|
||||
self.enterFullscreenButton.frame = CGRectZero;
|
||||
}
|
||||
self.fullscreenButtonDisabled = YES;
|
||||
}
|
||||
self.fullscreenButtonDisabled = YES;
|
||||
}
|
||||
%end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue