Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0aeed6af authored by Feng Qian's avatar Feng Qian
Browse files

Free memory on low memory condition.

This allows WebView to release cached resources and continue running.
parent 265c9d2a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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