Skip to content

Commit d51a449

Browse files
committed
[UI] Revert network request changes for the web view controller.
Adding support for network status isn't as simple as it might seem for this controller. If the controller is popped off the stack, for example, we'll never get enough request stopped messages to stop the indicator, resulting in a permanent loading state for the app. Barring a proper solution to this problem, for now we'll leave it to the controller to display the fact that it is loading.
1 parent 532e107 commit d51a449

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Three20UI/Sources/TTWebController.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ - (void)webViewDidStartLoad:(UIWebView*)webView {
317317
if (!self.navigationItem.rightBarButtonItem) {
318318
[self.navigationItem setRightBarButtonItem:_activityItem animated:YES];
319319
}
320-
TTNetworkRequestStarted();
321320
[_toolbar replaceItemWithTag:3 withItem:_stopButton];
322321
_backButton.enabled = [_webView canGoBack];
323322
_forwardButton.enabled = [_webView canGoForward];
@@ -327,7 +326,6 @@ - (void)webViewDidStartLoad:(UIWebView*)webView {
327326
///////////////////////////////////////////////////////////////////////////////////////////////////
328327
- (void)webViewDidFinishLoad:(UIWebView*)webView {
329328
TT_RELEASE_SAFELY(_loadingURL);
330-
TTNetworkRequestStopped();
331329
self.title = [_webView stringByEvaluatingJavaScriptFromString:@"document.title"];
332330
if (self.navigationItem.rightBarButtonItem == _activityItem) {
333331
[self.navigationItem setRightBarButtonItem:nil animated:YES];

0 commit comments

Comments
 (0)