OSDN Git Service

[DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast...
authorSunny Goyal <sunnygoyal@google.com>
Mon, 11 Apr 2016 20:01:32 +0000 (13:01 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Mon, 11 Apr 2016 20:03:33 +0000 (13:03 -0700)
Bug: 28115607
Change-Id: I208d629a346781d9b1fbeb0a245685bf36f85aeb

AndroidManifest.xml
src/com/android/launcher3/LauncherAppState.java

index 990bde0..918ae52 100644 (file)
             android:process=":settings_process">
         </activity>
 
-        <receiver
-            android:name="com.android.launcher3.WallpaperChangedReceiver">
-            <intent-filter>
-                <action android:name="android.intent.action.WALLPAPER_CHANGED" />
-            </intent-filter>
-        </receiver>
-
         <!-- Intent received used to install shortcuts from other applications -->
         <receiver
             android:name="com.android.launcher3.InstallShortcutReceiver"
index 4ac5ef3..5271029 100644 (file)
@@ -104,6 +104,9 @@ public class LauncherAppState {
         sContext.registerReceiver(mModel, filter);
         UserManagerCompat.getInstance(sContext).enableAndResetCache();
         new ConfigMonitor(sContext).register();
+
+        sContext.registerReceiver(
+                new WallpaperChangedReceiver(), new IntentFilter(Intent.ACTION_WALLPAPER_CHANGED));
     }
 
     /**