OSDN Git Service

Expose the desktop location of an unconsumed drag and drop
authorVladislav Kaznacheev <kaznacheev@google.com>
Thu, 5 Nov 2015 22:03:07 +0000 (14:03 -0800)
committerVladislav Kaznacheev <kaznacheev@google.com>
Thu, 5 Nov 2015 22:40:27 +0000 (14:40 -0800)
commitc748241523e12121015e793f5f368638b98a11fe
tree07493bb71b31c86e97aa085c2c17b4bf62e7f4be
parent853fde6915c1c336350c2bc85ec6f74cc1609d6d
Expose the desktop location of an unconsumed drag and drop

When dispatching DragEvent for ACTION_DRAG_ENDED action
getX and getY will return the location of the drop if it was not
consumed by any app.

Consumed drops will return (0,0) location as before.

Bug: 25486808
Change-Id: Ic57d94b42de62d8327e9ce47d92ba335c21b8ae2
services/core/java/com/android/server/wm/DragState.java
services/core/java/com/android/server/wm/WindowManagerService.java