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
This commit is contained in:
Jonathan Dixon
2013-07-25 19:54:31 -07:00
parent 638bfd9e87
commit c79f26f1ec

View File

@@ -1093,16 +1093,14 @@ public class DevelopmentSettings extends PreferenceFragment
private void writeExperimentalWebViewOptions() { private void writeExperimentalWebViewOptions() {
if (mExperimentalWebView != null) { if (mExperimentalWebView != null) {
SystemProperties.set(WebViewFactory.WEBVIEW_EXPERIMENTAL_PROPERTY, WebViewFactory.setUseExperimentalWebView(mExperimentalWebView.isChecked());
mExperimentalWebView.isChecked() ? "true" : null);
pokeSystemProperties(); pokeSystemProperties();
} }
} }
private void updateExperimentalWebViewOptions() { private void updateExperimentalWebViewOptions() {
if (mExperimentalWebView != null) { if (mExperimentalWebView != null) {
updateCheckBox(mExperimentalWebView, SystemProperties.getBoolean( updateCheckBox(mExperimentalWebView, WebViewFactory.useExperimentalWebView());
WebViewFactory.WEBVIEW_EXPERIMENTAL_PROPERTY, false));
} }
} }