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

Commit 43bc8a0f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Disable multiprocess WebView for 32-bit lowram devices."

parents 843ff333 b2b99253
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -296,7 +296,10 @@ public class SystemImpl implements SystemInterface {

    @Override
    public boolean isMultiProcessDefaultEnabled() {
        return true;
        // Multiprocess is enabled for all 64-bit devices, since the ability to run the renderer
        // process in 32-bit when it's a separate process typically results in a net memory saving.
        // Multiprocess is also enabled for 32-bit devices unless they report they are "low ram".
        return Build.SUPPORTED_64_BIT_ABIS.length > 0 || !ActivityManager.isLowRamDeviceStatic();
    }

    // flags declaring we want extra info from the package manager for webview providers