Removed mCallbackLooper from WallpaperService

Change-Id: Icb060a9225dbe7e848bbe80e6a9ab28fcfb59969
This commit is contained in:
Mita Yun
2012-12-10 18:32:03 -08:00
parent 4d56777e67
commit aa8dc2ee18

View File

@ -961,13 +961,7 @@ public abstract class WallpaperService extends Service {
IWallpaperEngineWrapper(WallpaperService context, IWallpaperEngineWrapper(WallpaperService context,
IWallpaperConnection conn, IBinder windowToken, IWallpaperConnection conn, IBinder windowToken,
int windowType, boolean isPreview, int reqWidth, int reqHeight) { int windowType, boolean isPreview, int reqWidth, int reqHeight) {
if (DEBUG && mCallbackLooper != null) { mCaller = new HandlerCaller(context, context.getMainLooper(), this, true);
mCallbackLooper.setMessageLogging(new LogPrinter(Log.VERBOSE, TAG));
}
mCaller = new HandlerCaller(context,
mCallbackLooper != null
? mCallbackLooper : context.getMainLooper(),
this, true /*asyncHandler*/);
mConnection = conn; mConnection = conn;
mWindowToken = windowToken; mWindowToken = windowToken;
mWindowType = windowType; mWindowType = windowType;