summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorTom O'Neill <tomo@google.com>2014-03-03 18:49:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-03 18:49:42 +0000
commitee4f84b0fb9e837cb54cb69e475cece68a90491e (patch)
treeeec986b1de0319faf78c54519f93aa30fb9afb5f /src/com/android
parent947d8143b97a0c84bb15a3fccc2562c98e1ffc04 (diff)
parent34501ae25893a2c36ce4860e96dd208950d75690 (diff)
downloadpackages_apps_Settings-ee4f84b0fb9e837cb54cb69e475cece68a90491e.tar.gz
packages_apps_Settings-ee4f84b0fb9e837cb54cb69e475cece68a90491e.tar.bz2
packages_apps_Settings-ee4f84b0fb9e837cb54cb69e475cece68a90491e.zip
Merge "Ignore any summary provided for injected settings"
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/settings/location/SettingsInjector.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/settings/location/SettingsInjector.java b/src/com/android/settings/location/SettingsInjector.java
index b9190802e..76b3103db 100644
--- a/src/com/android/settings/location/SettingsInjector.java
+++ b/src/com/android/settings/location/SettingsInjector.java
@@ -244,12 +244,12 @@ class SettingsInjector {
}
/**
- * Adds an injected setting to the root with status "Loading...".
+ * Adds an injected setting to the root.
*/
private Preference addServiceSetting(List<Preference> prefs, InjectedSetting info) {
Preference pref = new Preference(mContext);
pref.setTitle(info.title);
- pref.setSummary(R.string.location_loading_injected_setting);
+ pref.setSummary(null);
PackageManager pm = mContext.getPackageManager();
Drawable icon = pm.getDrawable(info.packageName, info.iconId, null);
pref.setIcon(icon);
@@ -425,12 +425,11 @@ class SettingsInjector {
@Override
public void handleMessage(Message msg) {
Bundle bundle = msg.getData();
- String summary = bundle.getString(SettingInjectorService.SUMMARY_KEY);
boolean enabled = bundle.getBoolean(SettingInjectorService.ENABLED_KEY, true);
if (Log.isLoggable(TAG, Log.DEBUG)) {
Log.d(TAG, setting + ": received " + msg + ", bundle: " + bundle);
}
- preference.setSummary(summary);
+ preference.setSummary(null);
preference.setEnabled(enabled);
mHandler.sendMessage(
mHandler.obtainMessage(WHAT_RECEIVED_STATUS, Setting.this));