diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-12-02 03:33:09 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-12-02 03:48:55 -0800 |
commit | 540437033286aa962b940cefac84686abf6d9ffa (patch) | |
tree | 2c29082de260d6676ec09a955cbeb0c80b764ef5 /UICaboodle/BrowserView.mm | |
parent | 61cc8460c4bb3c19180732df2006a63a9b62680b (diff) |
Use UIApplication::networkActivityIndicator to indicate network activity.
Diffstat (limited to 'UICaboodle/BrowserView.mm')
-rw-r--r-- | UICaboodle/BrowserView.mm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 5fd65c2..f1053f8 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -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]; |