[DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver

Bug: 28115607
Change-Id: I208d629a346781d9b1fbeb0a245685bf36f85aeb
This commit is contained in:
Sunny Goyal
2016-04-11 13:01:32 -07:00
parent 63d093de02
commit d435cc070a
2 changed files with 3 additions and 7 deletions
-7
View File
@@ -127,13 +127,6 @@
android:process=":settings_process"> android:process=":settings_process">
</activity> </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 --> <!-- Intent received used to install shortcuts from other applications -->
<receiver <receiver
android:name="com.android.launcher3.InstallShortcutReceiver" android:name="com.android.launcher3.InstallShortcutReceiver"
@@ -104,6 +104,9 @@ public class LauncherAppState {
sContext.registerReceiver(mModel, filter); sContext.registerReceiver(mModel, filter);
UserManagerCompat.getInstance(sContext).enableAndResetCache(); UserManagerCompat.getInstance(sContext).enableAndResetCache();
new ConfigMonitor(sContext).register(); new ConfigMonitor(sContext).register();
sContext.registerReceiver(
new WallpaperChangedReceiver(), new IntentFilter(Intent.ACTION_WALLPAPER_CHANGED));
} }
/** /**