diff options
-rw-r--r-- | res/xml/device_info_settings.xml | 8 | ||||
-rw-r--r-- | src/com/android/settings/DeviceInfoSettings.java | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/res/xml/device_info_settings.xml b/res/xml/device_info_settings.xml index d2ead7f..93347c6 100644 --- a/res/xml/device_info_settings.xml +++ b/res/xml/device_info_settings.xml @@ -24,6 +24,14 @@ <intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS" /> </PreferenceScreen> + + <PreferenceScreen android:key="additional_system_update_settings" + android:title="@string/additional_system_update_settings_list_item_title"> + <intent android:action="android.intent.action.MAIN" + android:targetPackage="@string/additional_system_update" + android:targetClass="@string/additional_system_update_menu" /> + </PreferenceScreen> + <!-- Device status - launches activity --> <PreferenceScreen android:key="status_info" android:title="@string/device_status" 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 |