diff options
author | nebkat <nebkat@teamhacksung.org> | 2012-12-30 23:25:10 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2012-12-30 23:25:10 +0000 |
commit | 535ae33d0d48cd03f5a4049cc3c35ddb9420a33c (patch) | |
tree | 17a3f89afce1bf8513ba236cc541689624ad1fc1 /src | |
parent | 8ef4dd94aa73ef5a1fc7cac0945a38a6680fa550 (diff) | |
download | packages_apps_trebuchet-535ae33d0d48cd03f5a4049cc3c35ddb9420a33c.zip packages_apps_trebuchet-535ae33d0d48cd03f5a4049cc3c35ddb9420a33c.tar.gz packages_apps_trebuchet-535ae33d0d48cd03f5a4049cc3c35ddb9420a33c.tar.bz2 |
Workspace: Fix hotseat dropping
Change-Id: If149e47964a674d878646100290f3d409b5d8efc
Diffstat (limited to 'src')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Hotseat.java | 8 | ||||
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Workspace.java | 4 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Hotseat.java b/src/com/cyanogenmod/trebuchet/Hotseat.java index bf48d0d..e5de57b 100644 --- a/src/com/cyanogenmod/trebuchet/Hotseat.java +++ b/src/com/cyanogenmod/trebuchet/Hotseat.java @@ -216,14 +216,6 @@ public class Hotseat extends PagedView { } } - /** - * Return the current {@link CellLayout}, correctly picking the destination - * screen while a scroll is in progress. - */ - public CellLayout getCurrentDropLayout() { - return (CellLayout) getChildAt(getNextPage()); - } - @Override protected void onFinishInflate() { super.onFinishInflate(); diff --git a/src/com/cyanogenmod/trebuchet/Workspace.java b/src/com/cyanogenmod/trebuchet/Workspace.java index 8564a56..a5c52ee 100644 --- a/src/com/cyanogenmod/trebuchet/Workspace.java +++ b/src/com/cyanogenmod/trebuchet/Workspace.java @@ -3214,8 +3214,8 @@ public class Workspace extends PagedView void mapPointFromSelfToHotseatLayout(Hotseat hotseat, float[] xy) { hotseat.getPageAt(hotseat.getNextPage()).getMatrix().invert(mTempInverseMatrix); - xy[0] = xy[0] - hotseat.getLeft() - hotseat.getPageAt(hotseat.getNextPage()).getLeft(); - xy[1] = xy[1] - hotseat.getTop() - hotseat.getPageAt(hotseat.getNextPage()).getTop(); + xy[0] = xy[0] - (hotseat.getLeft() - hotseat.getScrollX()) - hotseat.getPageAt(hotseat.getNextPage()).getLeft(); + xy[1] = xy[1] - (hotseat.getTop() - hotseat.getScrollY()) - hotseat.getPageAt(hotseat.getNextPage()).getTop(); mTempInverseMatrix.mapPoints(xy); } |