Merge "Fix wrong coordinate for DRAG_STARTED" into sc-qpr1-dev am: e0cc463e33
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15824241 Change-Id: I903d7a47d337722257d3b84c1813a670bb2860c9
This commit is contained in:
@@ -464,7 +464,8 @@ class DragState {
|
|||||||
if (mDragInProgress && isValidDropTarget(newWin, containsAppExtras, interceptsGlobalDrag)) {
|
if (mDragInProgress && isValidDropTarget(newWin, containsAppExtras, interceptsGlobalDrag)) {
|
||||||
// Only allow the extras to be dispatched to a global-intercepting drag target
|
// Only allow the extras to be dispatched to a global-intercepting drag target
|
||||||
ClipData data = interceptsGlobalDrag ? mData.copyForTransferWithActivityInfo() : null;
|
ClipData data = interceptsGlobalDrag ? mData.copyForTransferWithActivityInfo() : null;
|
||||||
DragEvent event = obtainDragEvent(DragEvent.ACTION_DRAG_STARTED, touchX, touchY,
|
DragEvent event = obtainDragEvent(DragEvent.ACTION_DRAG_STARTED,
|
||||||
|
newWin.translateToWindowX(touchX), newWin.translateToWindowY(touchY),
|
||||||
data, false /* includeDragSurface */,
|
data, false /* includeDragSurface */,
|
||||||
null /* dragAndDropPermission */);
|
null /* dragAndDropPermission */);
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user