Merge change Ifd95b9f5 into eclair

* changes:
  Fix #2313382: SECURITY: Live wallpapers get touch events through the lock screen.
This commit is contained in:
Android (Google) Code Review
2009-12-08 18:40:37 -08:00

View File

@@ -6014,7 +6014,9 @@ public class WindowManagerService extends IWindowManager.Stub
if (res != null && returnWhat == RETURN_PENDING_POINTER) {
synchronized (mWindowMap) {
if (mWallpaperTarget == win || mSendingPointersToWallpaper) {
if ((mWallpaperTarget == win &&
win.mAttrs.type != WindowManager.LayoutParams.TYPE_KEYGUARD)
|| mSendingPointersToWallpaper) {
sendPointerToWallpaperLocked(win, res, res.getEventTime());
}
}