diff options
-rw-r--r-- | MobileCydia.mm | 6 | ||||
-rw-r--r-- | UICaboodle/BrowserView.mm | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 5719549..8049d6c 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4200,6 +4200,8 @@ static NSMutableSet *Diversions_; return @"scrollToBottom"; else if (selector == @selector(setAllowsNavigationAction:)) return @"setAllowsNavigationAction"; + else if (selector == @selector(setBadgeValue:)) + return @"setBadgeValue"; else if (selector == @selector(setButtonImage:withStyle:toFunction:)) return @"setButtonImage"; else if (selector == @selector(setButtonTitle:withStyle:toFunction:)) @@ -4429,6 +4431,10 @@ static NSMutableSet *Diversions_; [indirect_ setButtonTitle:button withStyle:style toFunction:function]; } +- (void) setBadgeValue:(id)value { + [indirect_ performSelectorOnMainThread:@selector(setBadgeValue:) withObject:value waitUntilDone:NO]; +} + - (void) setAllowsNavigationAction:(NSString *)value { [indirect_ performSelectorOnMainThread:@selector(setAllowsNavigationActionByNumber:) withObject:value waitUntilDone:NO]; } diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 7a35642..4168de9 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -1195,6 +1195,10 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se [[[self navigationController] navigationBar] setTintColor:color]; } +- (void) setBadgeValue:(id)value { + [[[self navigationController] tabBarItem] setBadgeValue:value]; +} + - (void) setHidesBackButton:(bool)value { [[self navigationItem] setHidesBackButton:value]; } |