From: Jay Freeman (saurik) Date: Mon, 21 Mar 2011 11:19:00 +0000 (-0700) Subject: Do not show network activity for AppCacheController. X-Git-Tag: v1.1.0%rc1~52 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/2713be8e0bb9310f23e786a45429b422f6911db3 Do not show network activity for AppCacheController. --- diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 7cb59797..2298d75c 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -144,13 +144,18 @@ float CYScrollViewDecelerationRateNormal; CYScrollViewDecelerationRateNormal = 0.998; } +- (bool) retainsNetworkActivityIndicator { + return true; +} + - (void) dealloc { #if LogBrowser NSLog(@"[CyteWebViewController dealloc]"); #endif if ([loading_ count] != 0) - [delegate_ releaseNetworkActivityIndicator]; + if ([self retainsNetworkActivityIndicator]) + [delegate_ releaseNetworkActivityIndicator]; [super dealloc]; } @@ -737,7 +742,9 @@ float CYScrollViewDecelerationRateNormal; if ([loading_ count] != 1) return; - [delegate_ retainNetworkActivityIndicator]; + if ([self retainsNetworkActivityIndicator]) + [delegate_ retainNetworkActivityIndicator]; + [self didStartLoading]; } @@ -752,7 +759,9 @@ float CYScrollViewDecelerationRateNormal; [self applyRightButton]; [[self navigationItem] setTitle:title_]; - [delegate_ releaseNetworkActivityIndicator]; + if ([self retainsNetworkActivityIndicator]) + [delegate_ releaseNetworkActivityIndicator]; + [self didFinishLoading]; } diff --git a/MobileCydia.mm b/MobileCydia.mm index f9e5bdee..36a8793d 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4627,6 +4627,10 @@ static _H Diversions_; - (void) didReceiveMemoryWarning { } +- (bool) retainsNetworkActivityIndicator { + return false; +} + @end /* }}} */