diff options
author | Meng Hu <meng.hu@sta.samsung.com> | 2011-11-26 23:06:40 -0600 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2011-12-08 13:00:35 -0800 |
commit | 3feacdf3969800d6c53c6ca6f8ced2f8fc637f7f (patch) | |
tree | 7ade07aea28ffe0190d0d4fa6db7b8b80a84490b /src/com/android/settings/DeviceInfoSettings.java | |
parent | d59d7cb0914ff4fb8e0a6cf6f33c2fd2a27b6559 (diff) | |
download | packages_apps_settings-3feacdf3969800d6c53c6ca6f8ced2f8fc637f7f.zip packages_apps_settings-3feacdf3969800d6c53c6ca6f8ced2f8fc637f7f.tar.gz packages_apps_settings-3feacdf3969800d6c53c6ca6f8ced2f8fc637f7f.tar.bz2 |
Add Sprint update menu
Adds the conditionally used xml ui definition and removes it at runtime when it's not
wanted. Ported from GB.
bug:5237167
Change-Id: I89a67e1033ddc7099563732e839c08fbadb4fd75
Diffstat (limited to 'src/com/android/settings/DeviceInfoSettings.java')
-rw-r--r-- | src/com/android/settings/DeviceInfoSettings.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/settings/DeviceInfoSettings.java b/src/com/android/settings/DeviceInfoSettings.java index 89f87a8..c25a466 100644 --- a/src/com/android/settings/DeviceInfoSettings.java +++ b/src/com/android/settings/DeviceInfoSettings.java @@ -58,6 +58,7 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment { private static final String KEY_DEVICE_MODEL = "device_model"; private static final String KEY_BASEBAND_VERSION = "baseband_version"; private static final String KEY_FIRMWARE_VERSION = "firmware_version"; + private static final String KEY_UPDATE_SETTING = "additional_system_update_settings"; long[] mHits = new long[3]; @@ -106,6 +107,13 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment { Utils.UPDATE_PREFERENCE_FLAG_SET_TITLE_TO_MATCHING_ACTIVITY); Utils.updatePreferenceToSpecificActivityOrRemove(act, parentPreference, KEY_CONTRIBUTORS, Utils.UPDATE_PREFERENCE_FLAG_SET_TITLE_TO_MATCHING_ACTIVITY); + + // Read platform settings for additional system update setting + boolean isUpdateSettingAvailable = + getResources().getBoolean(R.bool.config_additional_system_update_setting_enable); + if (isUpdateSettingAvailable == false) { + getPreferenceScreen().removePreference(findPreference(KEY_UPDATE_SETTING)); + } } @Override |