Loading services/core/java/com/android/server/wm/DragDropController.java +2 −0 Original line number Diff line number Diff line Loading @@ -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); } /** Loading services/core/java/com/android/server/wm/WindowManagerInternal.java +10 −0 Original line number Diff line number Diff line Loading @@ -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) {} } /** Loading Loading
services/core/java/com/android/server/wm/DragDropController.java +2 −0 Original line number Diff line number Diff line Loading @@ -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); } /** Loading
services/core/java/com/android/server/wm/WindowManagerInternal.java +10 −0 Original line number Diff line number Diff line Loading @@ -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) {} } /** Loading