am 8c604349: Merge "Fix for a Launcher crash."
* commit '8c604349c7fabfe45f7f1474e4475646c1b9d195': Fix for a Launcher crash.
This commit is contained in:
committed by
Android Git Automerger
commit
323caa34b9
@@ -726,10 +726,12 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
|
||||
getLocationOnScreen(mTempCell);
|
||||
// Send a tap to the wallpaper if the last down was on empty space
|
||||
final int pointerIndex = ev.findPointerIndex(mActivePointerId);
|
||||
mWallpaperManager.sendWallpaperCommand(getWindowToken(),
|
||||
"android.wallpaper.tap",
|
||||
mTempCell[0] + (int) ev.getX(pointerIndex),
|
||||
mTempCell[1] + (int) ev.getY(pointerIndex), 0, null);
|
||||
if (pointerIndex >= 0) {
|
||||
mWallpaperManager.sendWallpaperCommand(getWindowToken(),
|
||||
"android.wallpaper.tap",
|
||||
mTempCell[0] + (int) ev.getX(pointerIndex),
|
||||
mTempCell[1] + (int) ev.getY(pointerIndex), 0, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user