summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-12-02 04:49:05 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-12-03 01:16:44 -0800
commit0e1784b407f7de937a24bcf2fc5a2d9ef825f7bf (patch)
treeef1c2596654e16595cc3f51ff3d970704d14c99d /MobileCydia.mm
parenteab7d275bff63899eba77011b22bd09702e9ea64 (diff)
Remove 1.x-compatible ApplicationIconBadge logic.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm16
1 files changed, 6 insertions, 10 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];