Fixing issue where migration all apps folder couldn't be picked up.

- Ensuring that we add items to the non-primary home page
- Fixing issue with drop-target touch handling on tablets

Change-Id: Iea5a383dc735a8f6044a00982f05789f8328ab63
This commit is contained in:
Winson Chung
2013-07-12 14:14:16 -07:00
parent 7bac576622
commit 156ab5b22e
5 changed files with 19 additions and 13 deletions

View File

@@ -115,6 +115,10 @@ public class ButtonDropTarget extends TextView implements DropTarget, DragContro
public void getHitRectRelativeToDragLayer(android.graphics.Rect outRect) {
super.getHitRect(outRect);
outRect.bottom += mBottomDragPadding;
int[] coords = new int[2];
mLauncher.getDragLayer().getDescendantCoordRelativeToSelf(this, coords);
outRect.offsetTo(coords[0], coords[1]);
}
private boolean isRtl() {