1a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka/*
2a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka * Copyright (C) 2013 The Android Open Source Project
3a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka *
4a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka * Licensed under the Apache License, Version 2.0 (the "License");
5a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka * you may not use this file except in compliance with the License.
6a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka * You may obtain a copy of the License at
7a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka *
8a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka *      http://www.apache.org/licenses/LICENSE-2.0
9a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka *
10a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka * Unless required by applicable law or agreed to in writing, software
11a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka * distributed under the License is distributed on an "AS IS" BASIS,
12a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka * See the License for the specific language governing permissions and
14a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka * limitations under the License.
15a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka */
16a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka
17a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurkapackage com.android.launcher3;
18a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka
19a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurkaimport android.content.BroadcastReceiver;
20a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurkaimport android.content.Context;
21a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurkaimport android.content.Intent;
22a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka
23a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurkapublic class WallpaperChangedReceiver extends BroadcastReceiver {
24a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka    public void onReceive(Context context, Intent data) {
2513571ae0de05039944008906c8217f942b91bd23Winson Chung        LauncherAppState.setApplicationContext(context.getApplicationContext());
26a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka        LauncherAppState appState = LauncherAppState.getInstance();
27a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka        appState.onWallpaperChanged();
28a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka    }
29a6a0547fa6df0769fcd107a2e5f7c7d527fa0700Michael Jurka}
30