OSDN Git Service

Move UPDATE_INTENT to SettingsInjectorService
authorTom O'Neill <tomo@google.com>
Wed, 14 Aug 2013 20:35:28 +0000 (13:35 -0700)
committerTom O'Neill <tomo@google.com>
Mon, 19 Aug 2013 20:13:25 +0000 (13:13 -0700)
Change-Id: I657c799b791e49e4af097f3cc4afdaa8f48325ac

src/com/android/settings/location/SettingsInjector.java

index 258f3fd..ea760f5 100644 (file)
@@ -56,6 +56,9 @@ import java.util.List;
  * Code-sharing would require extracting {@link
  * android.content.pm.RegisteredServicesCache#parseServiceAttributes(android.content.res.Resources,
  * String, android.util.AttributeSet)} into an interface, which didn't seem worth it.
+ *
+ * TODO: register a broadcast receiver that calls updateUI() when it receives
+ * {@link SettingInjectorService#UPDATE_INTENT}.
  */
 class SettingsInjector {
 
@@ -78,15 +81,6 @@ class SettingsInjector {
     public static final String ATTRIBUTES_NAME = "injected-location-setting";
 
     /**
-     * Intent action a client should broadcast when the value of one of its injected settings has
-     * changed, so that the setting can be updated in the UI.
-     *
-     * TODO: register a broadcast receiver that calls updateUI() when it receives this intent
-     */
-    public static final String UPDATE_INTENT =
-            "com.android.settings.InjectedLocationSettingChanged";
-
-    /**
      * Returns a list with one {@link InjectedSetting} object for each {@link android.app.Service}
      * that responds to {@link #RECEIVER_INTENT} and provides the expected setting metadata.
      *
@@ -198,9 +192,6 @@ class SettingsInjector {
 
     /**
      * Add settings that other apps have injected.
-     *
-     * TODO: extract InjectedLocationSettingGetter that returns an iterable over
-     * InjectedSetting objects, so that this class can focus on UI
      */
     public static void addInjectedSettings(PreferenceGroup group, Context context,
             PreferenceManager preferenceManager) {