Merge change 23774 into eclair

* changes:
  Fix issue #2097189: can't set custom wallpaper
This commit is contained in:
Android (Google) Code Review
2009-09-02 22:20:29 -07:00

View File

@@ -62,22 +62,23 @@ public class WallpaperManager {
private static final int MSG_CLEAR_WALLPAPER = 1;
private final Handler mHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_CLEAR_WALLPAPER:
synchronized (this) {
mWallpaper = null;
}
break;
}
}
};
private final Handler mHandler;
Globals() {
Globals(Looper looper) {
IBinder b = ServiceManager.getService(Context.WALLPAPER_SERVICE);
mService = IWallpaperManager.Stub.asInterface(b);
mHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_CLEAR_WALLPAPER:
synchronized (this) {
mWallpaper = null;
}
break;
}
}
};
}
public void onWallpaperChanged() {
@@ -188,7 +189,7 @@ public class WallpaperManager {
static void initGlobals(Looper looper) {
synchronized (mSync) {
if (sGlobals == null) {
sGlobals = new Globals();
sGlobals = new Globals(looper);
}
}
}