diff options
author | Kristian Monsen <kristianm@google.com> | 2011-08-25 20:32:24 +0100 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2011-09-02 01:50:04 +0100 |
commit | 64decc60823441a40e9376c98163c993bc934088 (patch) | |
tree | cda1c5f7eb428159cc4c3f2cd61b77040748140a /core | |
parent | 5a0a47a006008232d9962f2d8e6da8b7b79a4cdd (diff) | |
download | frameworks_base-64decc60823441a40e9376c98163c993bc934088.zip frameworks_base-64decc60823441a40e9376c98163c993bc934088.tar.gz frameworks_base-64decc60823441a40e9376c98163c993bc934088.tar.bz2 |
Close idle connections on pause timers
Part of fix for bug 4487538 Current Drain
Change-Id: Ie957321d11ee3a94a5549aebb5be6e3cb444ebcf
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/webkit/WebViewCore.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebViewCore.java b/core/java/android/webkit/WebViewCore.java index 3ca3eaa..0b94dad 100644 --- a/core/java/android/webkit/WebViewCore.java +++ b/core/java/android/webkit/WebViewCore.java @@ -537,6 +537,8 @@ public final class WebViewCore { private native void nativeSendListBoxChoice(int choice); + private native void nativeCloseIdleConnections(); + /* Tell webkit what its width and height are, for the purposes of layout/line-breaking. These coordinates are in document space, which is the same as View coords unless we have zoomed the document @@ -1252,6 +1254,8 @@ public final class WebViewCore { if (!JniUtil.useChromiumHttpStack()) { WebViewWorker.getHandler().sendEmptyMessage( WebViewWorker.MSG_PAUSE_CACHE_TRANSACTION); + } else { + nativeCloseIdleConnections(); } break; |