DO NOT MERGE Add support for additional System Update menu item

Change-Id: I21bf87b5d2805da672c0617a098258e0e2b78915
This commit is contained in:
Park Sanghyun
2011-03-25 16:23:59 +09:00
committed by Simon Wilson
parent c4eeeb29c5
commit e5da8565ca
4 changed files with 26 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ public class DeviceInfoSettings extends PreferenceActivity {
private static final String KEY_COPYRIGHT = "copyright";
private static final String KEY_SYSTEM_UPDATE_SETTINGS = "system_update_settings";
private static final String PROPERTY_URL_SAFETYLEGAL = "ro.url.safetylegal";
private static final String KEY_UPDATE_SETTING = "additional_system_update_settings";
long[] mHits = new long[3];
@@ -104,6 +105,14 @@ public class DeviceInfoSettings extends PreferenceActivity {
Utils.UPDATE_PREFERENCE_FLAG_SET_TITLE_TO_MATCHING_ACTIVITY);
Utils.updatePreferenceToSpecificActivityOrRemove(this, parentPreference, KEY_CONTRIBUTORS,
Utils.UPDATE_PREFERENCE_FLAG_SET_TITLE_TO_MATCHING_ACTIVITY);
// Read platform settings for additional system update setting
boolean mUpdateSettingAvailable =
getResources().getBoolean(R.bool.config_additional_system_update_setting_enable);
if(mUpdateSettingAvailable == false) {
getPreferenceScreen().removePreference(findPreference(KEY_UPDATE_SETTING));
}
}
@Override