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

Commit e3828311 authored by Vladislav Kaznacheev's avatar Vladislav Kaznacheev Committed by Android (Google) Code Review
Browse files

Merge "Send ACTION_DRAG_LOCATION right after ACTION_DRAG_STARTED"

parents b7cc096f d0ed8937
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -360,8 +360,6 @@ class DragState {
        mCurrentX = x;
        mCurrentY = y;

        final int myPid = Process.myPid();

        // Move the surface to the given touch
        if (SHOW_LIGHT_TRANSACTIONS) Slog.i(
                TAG_WM, ">>> OPEN TRANSACTION notifyMoveLw");
@@ -376,7 +374,10 @@ class DragState {
            if (SHOW_LIGHT_TRANSACTIONS) Slog.i(
                    TAG_WM, "<<< CLOSE TRANSACTION notifyMoveLw");
        }
        notifyLocationLw(x, y);
    }

    void notifyLocationLw(float x, float y) {
        // Tell the affected window
        WindowState touchedWin = getTouchedWinAtPointLw(x, y);
        if (touchedWin == null) {
@@ -392,6 +393,8 @@ class DragState {
            }
        }
        try {
            final int myPid = Process.myPid();

            // have we dragged over a new window?
            if ((touchedWin != mTargetWindow) && (mTargetWindow != null)) {
                if (DEBUG_DRAG) {
+2 −0
Original line number Diff line number Diff line
@@ -357,6 +357,8 @@ final class Session extends IWindowSession.Stub
                if (SHOW_LIGHT_TRANSACTIONS) Slog.i(
                        TAG_WM, "<<< CLOSE TRANSACTION performDrag");
            }

            mService.mDragState.notifyLocationLw(touchX, touchY);
        }

        return true;    // success!