OSDN Git Service

Set App context from WallpaperChanged receiver. (Bug 12525684)
authorWinson Chung <winsonc@google.com>
Mon, 13 Jan 2014 18:05:37 +0000 (10:05 -0800)
committerWinson Chung <winsonc@google.com>
Mon, 13 Jan 2014 18:05:37 +0000 (10:05 -0800)
Change-Id: Ie037d74d31e6b05b0ae5bb25ed1bf1c639a28a5f

src/com/android/launcher3/WallpaperChangedReceiver.java

index 28e41d8..2d5612f 100644 (file)
@@ -22,6 +22,7 @@ import android.content.Intent;
 
 public class WallpaperChangedReceiver extends BroadcastReceiver {
     public void onReceive(Context context, Intent data) {
+        LauncherAppState.setApplicationContext(context.getApplicationContext());
         LauncherAppState appState = LauncherAppState.getInstance();
         appState.onWallpaperChanged();
     }