Extending the hit rect when testing for dragging over the hotseat.

Change-Id: I57cf863c663b1e57fa422db880b6003ead1199c8
This commit is contained in:
Winson Chung
2013-09-24 15:41:09 -07:00
parent 730c2e1f88
commit abedd9fd4e
2 changed files with 21 additions and 5 deletions

View File

@@ -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;
}