Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Merge branch 'Galactic-Dev:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
qnblackcat authored Mar 23, 2022
2 parents c872c42 + 32f1e61 commit a026656
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions iSponsorBlock.xm
Original file line number Diff line number Diff line change
Expand Up @@ -249,25 +249,17 @@ NSString *modifiedTimeString;
}
return %orig;
}

-(void)setTopOverlayVisible:(BOOL)arg1 isAutonavCanceledState:(BOOL)arg2 {
if(self.isDisplayingSponsorBlockViewController) {
if (self.isDisplayingSponsorBlockViewController) {
%orig(NO, arg2);
self.sponsorBlockButton.imageView.hidden = YES;
self.sponsorStartedEndedButton.imageView.hidden = YES;
return;
}
BOOL overlayVisible;
if([self respondsToSelector:@selector(isOverlayVisible)]) {
overlayVisible = self.overlayVisible;
}
else {
overlayVisible = [[self valueForKey:@"_isOverlayVisible"] boolValue];
}
self.sponsorBlockButton.hidden = !overlayVisible;
self.sponsorStartedEndedButton.hidden = !overlayVisible;

self.sponsorBlockButton.imageView.hidden = !overlayVisible;
self.sponsorStartedEndedButton.imageView.hidden = !overlayVisible;

self.sponsorBlockButton.alpha = arg2 || arg1 ? 1:0;
self.sponsorStartedEndedButton.alpha = arg2 || arg1 ? 1:0;
%orig;
}

Expand Down

0 comments on commit a026656

Please # to comment.