am 48515f49: Merge change I0de7979b into eclair
Merge commit '48515f495b29c01b473579825d5ba5e690ff5db7' into eclair-mr2 * commit '48515f495b29c01b473579825d5ba5e690ff5db7': Fix issue #2170897: wallpaper touch-up event not seen when exiting lock screen
This commit is contained in:
@@ -16,11 +16,14 @@
|
||||
|
||||
package android.service.wallpaper;
|
||||
|
||||
import android.view.MotionEvent;
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
oneway interface IWallpaperEngine {
|
||||
void setDesiredSize(int width, int height);
|
||||
void setVisibility(boolean visible);
|
||||
void dispatchPointer(in MotionEvent event);
|
||||
void destroy();
|
||||
}
|
||||
|
||||
@@ -746,6 +746,12 @@ public abstract class WallpaperService extends Service {
|
||||
mCaller.sendMessage(msg);
|
||||
}
|
||||
|
||||
public void dispatchPointer(MotionEvent event) {
|
||||
if (mEngine != null) {
|
||||
mEngine.mWindow.onDispatchPointer(event, event.getEventTime(), false);
|
||||
}
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
Message msg = mCaller.obtainMessage(DO_DETACH);
|
||||
mCaller.sendMessage(msg);
|
||||
@@ -805,6 +811,7 @@ public abstract class WallpaperService extends Service {
|
||||
mEngine.mPendingMove = null;
|
||||
}
|
||||
}
|
||||
if (DEBUG) Log.v(TAG, "Delivering touch event: " + ev);
|
||||
mEngine.onTouchEvent(ev);
|
||||
ev.recycle();
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user