mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
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:
@@ -77,7 +77,7 @@ public class DragPreviewProvider {
|
||||
if (mView instanceof DraggableView) {
|
||||
DraggableView dv = (DraggableView) mView;
|
||||
dv.prepareDrawDragView();
|
||||
dv.getVisualDragBounds(mTempRect);
|
||||
dv.getSourceVisualDragBounds(mTempRect);
|
||||
destCanvas.translate(blurSizeOutline / 2 - mTempRect.left,
|
||||
blurSizeOutline / 2 - mTempRect.top);
|
||||
mView.draw(destCanvas);
|
||||
@@ -95,7 +95,7 @@ public class DragPreviewProvider {
|
||||
// Assume scaleX == scaleY, which is always the case for workspace items.
|
||||
float scale = mView.getScaleX();
|
||||
if (mView instanceof DraggableView) {
|
||||
((DraggableView) mView).getVisualDragBounds(mTempRect);
|
||||
((DraggableView) mView).getSourceVisualDragBounds(mTempRect);
|
||||
width = mTempRect.width();
|
||||
height = mTempRect.height();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user