]> git.saurik.com Git - cydia.git/commitdiff
Do not show network activity for AppCacheController.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 21 Mar 2011 11:19:00 +0000 (04:19 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 21 Mar 2011 11:19:00 +0000 (04:19 -0700)
CyteKit/WebViewController.mm
MobileCydia.mm

index 7cb59797874ea32898ed7f39b11f0de6a4392708..2298d75c3a3c451ed38d3d6c7811223fb206d22d 100644 (file)
@@ -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];
 }
 
index f9e5bdeeae2a50367c0a069aa6ab2e1b24ad5d15..36a8793dab67a991851820df26a71165408527c9 100644 (file)
@@ -4627,6 +4627,10 @@ static _H<NSMutableSet> Diversions_;
 - (void) didReceiveMemoryWarning {
 }
 
+- (bool) retainsNetworkActivityIndicator {
+    return false;
+}
+
 @end
 /* }}} */