mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-17 17:48:20 +00:00
Fix bug with drag visualization and UserFolders.
When dragging an app shortcut, it was possible that we'd show a red rectangle around a cell occupied by a UserFolder. This shouldn't be possible -- as soon as that cell becomes the target drop cell, the folder should start handling the drag and drop events. Change-Id: I1b7a8b1aa9aeb7e2f1bd51ce8d947c06455e988f
This commit is contained in:
@@ -50,6 +50,26 @@ public interface DropTarget {
|
||||
void onDragExit(DragSource source, int x, int y, int xOffset, int yOffset,
|
||||
DragView dragView, Object dragInfo);
|
||||
|
||||
/**
|
||||
* Allows a DropTarget to delegate drag and drop events to another object.
|
||||
*
|
||||
* Most subclasses will should just return null from this method.
|
||||
*
|
||||
* @param source DragSource where the drag started
|
||||
* @param x X coordinate of the drop location
|
||||
* @param y Y coordinate of the drop location
|
||||
* @param xOffset Horizontal offset with the object being dragged where the original
|
||||
* touch happened
|
||||
* @param yOffset Vertical offset with the object being dragged where the original
|
||||
* touch happened
|
||||
* @param dragView The DragView that's being dragged around on screen.
|
||||
* @param dragInfo Data associated with the object being dragged
|
||||
*
|
||||
* @return The DropTarget to delegate to, or null to not delegate to another object.
|
||||
*/
|
||||
DropTarget getDropTargetDelegate(DragSource source, int x, int y, int xOffset, int yOffset,
|
||||
DragView dragView, Object dragInfo);
|
||||
|
||||
/**
|
||||
* Check if a drop action can occur at, or near, the requested location.
|
||||
* This may be called repeatedly during a drag, so any calls should return
|
||||
|
||||
Reference in New Issue
Block a user