From c79f26f1ec9a2d5ca4f5e2df780984bec09cf1a6 Mon Sep 17 00:00:00 2001 From: Jonathan Dixon Date: Thu, 25 Jul 2013 19:54:31 -0700 Subject: [PATCH] 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 --- src/com/android/settings/DevelopmentSettings.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java index 6c3ce1a029b..a7ad1f724ea 100644 --- a/src/com/android/settings/DevelopmentSettings.java +++ b/src/com/android/settings/DevelopmentSettings.java @@ -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()); } }