]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/BrowserView.mm
Use UIApplication::networkActivityIndicator to indicate network activity.
[cydia.git] / UICaboodle / BrowserView.mm
index 5fd65c21ee0b4be57effd3ac692a611c3bab4d76..f1053f85e65f5c5fa76185f6c4900ca510adb104 100644 (file)
@@ -451,6 +451,8 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
     if (title_ != nil)
         [title_ release];
 
+    if ([loading_ count] != 0)
+        [delegate_ releaseNetworkActivityIndicator];
     [loading_ release];
 
     [reloaditem_ release];
@@ -904,11 +906,16 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
 
 - (void) _didStartLoading {
     [self applyRightButton];
+
+    if ([loading_ count] != 1)
+        return;
+    [delegate_ retainNetworkActivityIndicator];
 }
 
 - (void) _didFinishLoading {
     if ([loading_ count] != 0)
         return;
+    [delegate_ releaseNetworkActivityIndicator];
 
     [self applyRightButton];