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

Commit c79f26f1 authored by Jonathan Dixon's avatar Jonathan Dixon
Browse files

Use WebViewFactory accessors to find experimental state

This allows the knowledge of default on/off state to the contained in
the WebViewFactory class.

Change-Id: I5645b403d6232252ef36e45097c6a76e4b693dd4
parent 638bfd9e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1093,16 +1093,14 @@ public class DevelopmentSettings extends PreferenceFragment

    private void writeExperimentalWebViewOptions() {
        if (mExperimentalWebView != null) {
            SystemProperties.set(WebViewFactory.WEBVIEW_EXPERIMENTAL_PROPERTY,
                    mExperimentalWebView.isChecked() ? "true" : null);
            WebViewFactory.setUseExperimentalWebView(mExperimentalWebView.isChecked());
            pokeSystemProperties();
        }
    }

    private void updateExperimentalWebViewOptions() {
        if (mExperimentalWebView != null) {
            updateCheckBox(mExperimentalWebView, SystemProperties.getBoolean(
                    WebViewFactory.WEBVIEW_EXPERIMENTAL_PROPERTY, false));
            updateCheckBox(mExperimentalWebView, WebViewFactory.useExperimentalWebView());
        }
    }