summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/TabControl.java
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2009-06-10 15:37:21 -0400
committerDerek Sollenberger <djsollen@google.com>2009-06-10 15:37:21 -0400
commit4433d0333f18ea1e5c5c531db48908665c6f8446 (patch)
tree6fd37397034be1d60d308a75178fe8c79b2bf34f /src/com/android/browser/TabControl.java
parent9375424274dd75171ce59e89da1cb89fd8bf1e05 (diff)
downloadpackages_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.java6
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();