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

Commit 30b112b9 authored by Tetsui Ohkubo's avatar Tetsui Ohkubo Committed by Android (Google) Code Review
Browse files

Merge "Expose drag recipient change to IDragDropCallback"

parents 2a4c939f 5c59e049
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -291,12 +291,14 @@ class DragDropController {
        if (DEBUG_DRAG) {
            Slog.d(TAG_WM, "Drag into new candidate view @ " + window.asBinder());
        }
        mCallback.get().dragRecipientEntered(window);
    }

    void dragRecipientExited(IWindow window) {
        if (DEBUG_DRAG) {
            Slog.d(TAG_WM, "Drag from old candidate view @ " + window.asBinder());
        }
        mCallback.get().dragRecipientExited(window);
    }

    /**
+10 −0
Original line number Diff line number Diff line
@@ -288,6 +288,16 @@ public abstract class WindowManagerInternal {
         * Called when drag operation was cancelled.
         */
        default void postCancelDragAndDrop() {}

        /**
         * Called when it has entered a View that is willing to accept the drop.
         */
        default void dragRecipientEntered(IWindow window) {}

        /**
         * Called when it has exited a View that is willing to accept the drop.
         */
        default void dragRecipientExited(IWindow window) {}
    }

    /**