Update uYouPlus.xm

This commit is contained in:
arichornlover 2024-05-12 14:32:30 -05:00 committed by GitHub
parent 4ae3d0aaa8
commit 7e45d1dcc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,18 +78,6 @@ static int contrastMode() {
}
%end
// 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 {