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

Commit 6af185ca authored by Torne (Richard Coles)'s avatar Torne (Richard Coles) Committed by android-build-merger
Browse files

Merge "Only start WebView zygote if multiprocess enabled." into qt-dev

am: aba1846f

Change-Id: I0afd10ab2c7b08fa6d167762c3b8224fd46772d1
parents 2cb316b1 aba1846f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -81,9 +81,12 @@ public class WebViewUpdateServiceImpl {
    void prepareWebViewInSystemServer() {
        migrateFallbackStateOnBoot();
        mWebViewUpdater.prepareWebViewInSystemServer();
        mSystemInterface.notifyZygote(isMultiProcessEnabled());
        boolean multiProcessEnabled = isMultiProcessEnabled();
        mSystemInterface.notifyZygote(multiProcessEnabled);
        if (multiProcessEnabled) {
            AsyncTask.THREAD_POOL_EXECUTOR.execute(this::startZygoteWhenReady);
        }
    }

    void startZygoteWhenReady() {
        // Wait on a background thread for RELRO creation to be done. We ignore the return value