mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
This commit is contained in:
parent
90de7689e2
commit
4c78e0d92a
1 changed files with 13 additions and 1 deletions
|
|
@ -78,7 +78,19 @@ static int contrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
// Enable Alternate Icons
|
||||
// Remove notification badge (App Home Screen) - fixes https://github.com/arichornlover/uYouEnhanced/issues/603 - @arichornlover
|
||||
%hook UIApplication
|
||||
- (void)setApplicationIconBadgeNumber:(NSInteger)badgeNumber { // this is a Sideload Fix, not recommended for Jailbroken users.
|
||||
if ([self respondsToSelector:@selector(setApplicationIconBadgeNumber:)]) {
|
||||
if ([[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.google.ios.youtube"]) { // may break implementation if you modify Bundle ID
|
||||
badgeNumber = 0;
|
||||
}
|
||||
}
|
||||
%orig(badgeNumber);
|
||||
}
|
||||
%end
|
||||
|
||||
// Enable Alternate Icons - @arichornlover
|
||||
%hook UIApplication
|
||||
- (BOOL)supportsAlternateIcons {
|
||||
return YES;
|
||||
|
|
|
|||
Loading…
Reference in a new issue