summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/DevelopmentSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/DevelopmentSettings.java')
-rw-r--r--src/com/android/settings/DevelopmentSettings.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java
index 6d9206c..3708999 100644
--- a/src/com/android/settings/DevelopmentSettings.java
+++ b/src/com/android/settings/DevelopmentSettings.java
@@ -359,8 +359,10 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
mWebViewDataReductionProxy = findAndInitCheckboxPref(WEBVIEW_DATA_REDUCTION_PROXY_KEY);
String key = Settings.Global.getString(getActivity().getContentResolver(),
Settings.Global.WEBVIEW_DATA_REDUCTION_PROXY_KEY);
- // Make it not selectable if the key is not available for some reason.
- mWebViewDataReductionProxy.setSelectable(key != null && !key.isEmpty());
+ // Disable the selection if the key is not available for some reason.
+ if (key == null || key.isEmpty()) {
+ disableForUser(mWebViewDataReductionProxy);
+ }
}
private ListPreference addListPreference(String prefKey) {