diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-12-02 04:49:05 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-12-03 01:16:44 -0800 |
commit | 0e1784b407f7de937a24bcf2fc5a2d9ef825f7bf (patch) | |
tree | ef1c2596654e16595cc3f51ff3d970704d14c99d | |
parent | eab7d275bff63899eba77011b22bd09702e9ea64 (diff) |
Remove 1.x-compatible ApplicationIconBadge logic.
-rw-r--r-- | MobileCydia.mm | 16 | ||||
-rw-r--r-- | iPhonePrivate.h | 3 |
2 files changed, 6 insertions, 13 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 267fa21..872e818 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -8210,24 +8210,20 @@ static _finline void _setHomePage(Cydia *self) { } } + NSLog(@"changes:#%u", changes); + UITabBarItem *changesItem = [[[tabbar_ viewControllers] objectAtIndex:[self indexOfTabWithTag:kChangesTag]] tabBarItem]; if (changes != 0) { + _trace(); NSString *badge([[NSNumber numberWithInt:changes] stringValue]); [changesItem setBadgeValue:badge]; [changesItem setAnimatedBadge:([essential_ count] > 0)]; - - if ([self respondsToSelector:@selector(setApplicationBadge:)]) - [self setApplicationBadge:badge]; - else - [self setApplicationBadgeString:badge]; + [self setApplicationIconBadgeNumber:changes]; } else { + _trace(); [changesItem setBadgeValue:nil]; [changesItem setAnimatedBadge:NO]; - - if ([self respondsToSelector:@selector(removeApplicationBadge)]) - [self removeApplicationBadge]; - else // XXX: maybe use setApplicationBadgeString also? - [self setApplicationIconBadgeNumber:0]; + [self setApplicationIconBadgeNumber:0]; } [self _updateData]; diff --git a/iPhonePrivate.h b/iPhonePrivate.h index afb4a34..e6a79dc 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -195,9 +195,6 @@ typedef enum { - (void) applicationWillResignActive:(UIApplication *)application; - (void) applicationWillSuspend; - (void) launchApplicationWithIdentifier:(NSString *)identifier suspended:(BOOL)suspended; -- (void) removeApplicationBadge; -- (void) setApplicationBadge:(NSString *)badge; -- (void) setApplicationBadgeString:(NSString *)badge; - (void) setStatusBarShowsProgress:(BOOL)shows; - (void) _setSuspended:(BOOL)suspended; - (void) terminateWithSuccess; |