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

Commit

Permalink
Merge pull request Galactic-Dev#45 from iCrazeiOS/patch-1
Browse files Browse the repository at this point in the history
fix slight ui bug
  • Loading branch information
Galactic-Dev authored Mar 22, 2022
2 parents 3c9536f + aed8412 commit 32f1e61
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 @@ -244,25 +244,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 32f1e61

Please # to comment.