Free memory on low memory condition.

This allows WebView to release cached resources and continue running.
This commit is contained in:
Feng Qian
2009-07-16 20:53:31 -07:00
parent 265c9d2a14
commit 0aeed6af6e

View File

@@ -228,8 +228,8 @@ public class TestShellActivity extends Activity implements LayoutTestController
@Override
public void onLowMemory() {
super.onLowMemory();
Log.e(LOGTAG, "Low memory, kill self");
System.exit(1);
Log.e(LOGTAG, "Low memory, clearing caches");
mWebView.freeMemory();
}
// Dump the page