Commit 3881811f authored by Ricardo Cerqueira's avatar Ricardo Cerqueira

Support the signed-builds FOTA updater, too

Change-Id: I2724881d6252ce7ce17ed9b3cfa94f6fecae1f7d
parent b1755aad
......@@ -18,11 +18,13 @@
android:title="@string/about_settings">
<!-- System update settings - launches activity -->
<!-- <PreferenceScreen android:key="system_update_settings"
<PreferenceScreen android:key="system_update_settings"
android:title="@string/system_update_settings_list_item_title"
android:summary="@string/system_update_settings_list_item_summary">
<intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS" />
</PreferenceScreen> -->
<intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS"
android:targetPackage="com.cyanogenmod.fota"
android:targetClass="com.cyanogenmod.fota.SystemUpdateActivity" />
</PreferenceScreen>
<PreferenceScreen android:key="additional_system_update_settings"
android:title="@string/additional_system_update_settings_list_item_title">
......
......@@ -165,6 +165,7 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment {
Utils.updatePreferenceToSpecificActivityOrRemove(act, parentPreference,
KEY_SYSTEM_UPDATE_SETTINGS,
Utils.UPDATE_PREFERENCE_FLAG_SET_TITLE_TO_MATCHING_ACTIVITY);
removePreferenceIfPackageNotInstalled(findPreference(KEY_SYSTEM_UPDATE_SETTINGS));
} else {
// Remove for secondary users
removePreference(KEY_SYSTEM_UPDATE_SETTINGS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment