diff options
author | Derek Sollenberger <djsollen@google.com> | 2009-06-10 15:37:21 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2009-06-10 15:37:21 -0400 |
commit | 4433d0333f18ea1e5c5c531db48908665c6f8446 (patch) | |
tree | 6fd37397034be1d60d308a75178fe8c79b2bf34f /src/com/android/browser/TabControl.java | |
parent | 9375424274dd75171ce59e89da1cb89fd8bf1e05 (diff) | |
download | packages_apps_Browser-4433d0333f18ea1e5c5c531db48908665c6f8446.zip packages_apps_Browser-4433d0333f18ea1e5c5c531db48908665c6f8446.tar.gz packages_apps_Browser-4433d0333f18ea1e5c5c531db48908665c6f8446.tar.bz2 |
Call the WebViewCore's freeMemory instead of just clearCache
Diffstat (limited to 'src/com/android/browser/TabControl.java')
-rw-r--r-- | src/com/android/browser/TabControl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/browser/TabControl.java b/src/com/android/browser/TabControl.java index d880d40..f66df69 100644 --- a/src/com/android/browser/TabControl.java +++ b/src/com/android/browser/TabControl.java @@ -684,11 +684,11 @@ class TabControl { return; } - // free the WebView cache - Log.w(LOGTAG, "Free WebView cache"); + // free the WebView's unused memory (this includes the cache) + Log.w(LOGTAG, "Free WebView's unused memory and cache"); WebView view = getCurrentWebView(); if (view != null) { - view.clearCache(false); + view.freeMemory(); } // force a gc System.gc(); |