mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Extending the hit rect when testing for dragging over the hotseat.
Change-Id: I57cf863c663b1e57fa422db880b6003ead1199c8
This commit is contained in:
@@ -2909,7 +2909,10 @@ public class Workspace extends SmoothPagedView
|
||||
mTempPt[0] = x;
|
||||
mTempPt[1] = y;
|
||||
mLauncher.getDragLayer().getDescendantCoordRelativeToSelf(this, mTempPt, true);
|
||||
mLauncher.getHotseat().getHitRect(r);
|
||||
|
||||
LauncherAppState app = LauncherAppState.getInstance();
|
||||
DeviceProfile grid = app.getDynamicGrid().getDeviceProfile();
|
||||
r = grid.getHotseatRect();
|
||||
if (r.contains(mTempPt[0], mTempPt[1])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user