mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Grid spacing fixes
- Restoring old grid for widgets - Disabling ability to add widgets to hotseat - Updating holo colors - Updating assets Change-Id: I3a639f0afeca9463f8079eb8fbaedf295a41fa0f
This commit is contained in:
@@ -375,6 +375,11 @@ public class DragLayer extends FrameLayout {
|
||||
toY -= (dragView.getHeight() - (int) Math.round(scale * d.getIntrinsicHeight())) / 2;
|
||||
// Center in the x coordinate about the target's drawable
|
||||
toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2;
|
||||
} else if (child instanceof FolderIcon) {
|
||||
// Account for holographic blur padding on the drag view
|
||||
toY -= HolographicOutlineHelper.MAX_OUTER_BLUR_RADIUS / 2;
|
||||
// Center in the x coordinate about the target's drawable
|
||||
toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2;
|
||||
} else {
|
||||
toY -= (Math.round(scale * (dragView.getHeight() - child.getMeasuredHeight()))) / 2;
|
||||
toX -= (Math.round(scale * (dragView.getMeasuredWidth()
|
||||
|
||||
Reference in New Issue
Block a user