mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 10:18:20 +00:00
Ensuring that the widget drag outline is padded by the default widget padding. (Bug 10881814)
Change-Id: I8d613104d07e64e55f31f777d222a2ecaccb0adc
This commit is contained in:
@@ -338,7 +338,8 @@ public class Workspace extends SmoothPagedView
|
||||
ItemInfo itemInfo, boolean springLoaded) {
|
||||
int[] size = new int[2];
|
||||
if (getChildCount() > 0) {
|
||||
CellLayout cl = (CellLayout) mLauncher.getWorkspace().getChildAt(0);
|
||||
// Use the first non-custom page to estimate the child position
|
||||
CellLayout cl = (CellLayout) getChildAt(numCustomPages());
|
||||
Rect r = estimateItemPosition(cl, itemInfo, 0, 0, hSpan, vSpan);
|
||||
size[0] = r.width();
|
||||
size[1] = r.height();
|
||||
|
||||
Reference in New Issue
Block a user