summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/Controller.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/browser/Controller.java')
-rw-r--r--src/com/android/browser/Controller.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 5b00179..b495cc0 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -679,9 +679,7 @@ public class Controller
if ((!mActivityPaused && !inLoad) || (mActivityPaused && inLoad)) {
CookieSyncManager.getInstance().startSync();
WebView w = tab.getWebView();
- if (w != null) {
- w.resumeTimers();
- }
+ WebViewTimersControl.getInstance().onBrowserActivityResume(w);
}
}
@@ -695,10 +693,7 @@ public class Controller
return true;
} else if (!tab.inPageLoad()) {
CookieSyncManager.getInstance().stopSync();
- WebView w = getCurrentWebView();
- if (w != null) {
- w.pauseTimers();
- }
+ WebViewTimersControl.getInstance().onBrowserActivityPause(getCurrentWebView());
return true;
}
return false;