Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 716c60a8 authored by Arthur Hung's avatar Arthur Hung Committed by Automerger Merge Worker
Browse files

Merge "Fix wrong coordinate for DRAG_STARTED" into sc-qpr1-dev am: e0cc463e am: 92eee515

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15824241

Change-Id: Icf47315cdb74f0daab49b6df7d4fa26c1cb48ec1
parents 7bc44feb 92eee515
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -464,7 +464,8 @@ class DragState {
        if (mDragInProgress && isValidDropTarget(newWin, containsAppExtras, interceptsGlobalDrag)) {
            // Only allow the extras to be dispatched to a global-intercepting drag target
            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 */,
                    null /* dragAndDropPermission */);
            try {