Fix issues with drag and drop from All Apps in non-default grids

=> Also fix the widget tray in these non-default grids, and the external shortcut addition flow. The layout was broken as it was scaling with the icon size. Instead keep it fixed which looks much better, similar to how we maintain all apps.
=> This also fixes a small jump when dragging shortcuts external to Launcher.

issue 154169001

Change-Id: Iad1e3859dd6fedccce9b5c6633e64426a4630c31
This commit is contained in:
Adam Cohen committed 2020-05-08 16:00:08 -07:00
1 parent 4f51725717
commit c77bc45fa5
8 files changed
+53 -18

No files matched your search

@@ -53,5 +53,14 @@ public interface DraggableView {
*
* @param bounds Visual bounds in the views coordinates will be written here.
*/
default void getVisualDragBounds(Rect bounds) { }
default void getWorkspaceVisualDragBounds(Rect bounds) { }
/**
* Same as above, but accounts for differing icon sizes between source and destination
*
* @param bounds Visual bounds in the views coordinates will be written here.
*/
default void getSourceVisualDragBounds(Rect bounds) {
getWorkspaceVisualDragBounds(bounds);
}
}