diff options
Diffstat (limited to 'UICaboodle')
-rw-r--r-- | UICaboodle/BrowserView.h | 2 | ||||
-rw-r--r-- | UICaboodle/BrowserView.mm | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index f5d5029..f224326 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -50,6 +50,8 @@ @end @protocol BrowserControllerDelegate +- (void) retainNetworkActivityIndicator; +- (void) releaseNetworkActivityIndicator; - (CYViewController *) pageForURL:(NSURL *)url hasTag:(int *)tag; @end 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]; |