diff options
author | luca020400 <luca.stefani.ge1@gmail.com> | 2016-05-23 09:06:16 +0200 |
---|---|---|
committer | Luca Stefani <luca.stefani.ge1@gmail.com> | 2016-05-23 00:42:02 -0700 |
commit | e0c4195281314478a0aee3e982a00c101bf86054 (patch) | |
tree | 9d96254709cbf6c6c83c5d1d0319dc15b5944d81 /src/com/android/settings/SecuritySettings.java | |
parent | 5599680aa5c84f00a0ee148186e66e2476ce6184 (diff) | |
download | packages_apps_Settings-e0c4195281314478a0aee3e982a00c101bf86054.zip packages_apps_Settings-e0c4195281314478a0aee3e982a00c101bf86054.tar.gz packages_apps_Settings-e0c4195281314478a0aee3e982a00c101bf86054.tar.bz2 |
Settings: Fix blur preference removal
* The preference lives in the General category group
Change-Id: Ia6ab514557f6ff0c731a9d2a342f8bfea98bd0a6
Diffstat (limited to 'src/com/android/settings/SecuritySettings.java')
-rw-r--r-- | src/com/android/settings/SecuritySettings.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/SecuritySettings.java b/src/com/android/settings/SecuritySettings.java index 35451d7..9305f0a 100644 --- a/src/com/android/settings/SecuritySettings.java +++ b/src/com/android/settings/SecuritySettings.java @@ -365,8 +365,8 @@ public class SecuritySettings extends SettingsPreferenceFragment boolean blurSupported = getResources().getBoolean( com.android.internal.R.bool.config_ui_blur_enabled); if (!blurSupported) { - Preference blurEnabledPref = root.findPreference(KEY_LOCK_SCREEN_BLUR); - if (blurEnabledPref != null) root.removePreference(blurEnabledPref); + Preference blurEnabledPref = generalCategory.findPreference(KEY_LOCK_SCREEN_BLUR); + if (blurEnabledPref != null) generalCategory.removePreference(blurEnabledPref); } } |