diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-21 04:19:00 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-21 04:19:00 -0700 |
commit | 2713be8e0bb9310f23e786a45429b422f6911db3 (patch) | |
tree | 4b42fcaae9b49cbc9e670029807c69687e83ada3 | |
parent | 0ecaa4e2f36d5a6abbbe8c39d143792ab72e7f67 (diff) |
Do not show network activity for AppCacheController.
-rw-r--r-- | CyteKit/WebViewController.mm | 15 | ||||
-rw-r--r-- | MobileCydia.mm | 4 |
2 files changed, 16 insertions, 3 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 7cb5979..2298d75 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 f9e5bde..36a8793 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4627,6 +4627,10 @@ static _H<NSMutableSet> Diversions_; - (void) didReceiveMemoryWarning { } +- (bool) retainsNetworkActivityIndicator { + return false; +} + @end /* }}} */ |