am e5da8565
: DO NOT MERGE Add support for additional System Update menu item
* commit 'e5da8565ca7930483c2e8c6467710716cf51ba51': DO NOT MERGE Add support for additional System Update menu item
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user