From 156ab5b22e45b36a1c5edbe5accccf6aefcb4907 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 12 Jul 2013 14:14:16 -0700 Subject: 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 --- src/com/android/launcher3/ButtonDropTarget.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/com/android/launcher3/ButtonDropTarget.java') diff --git a/src/com/android/launcher3/ButtonDropTarget.java b/src/com/android/launcher3/ButtonDropTarget.java index 3fcc2b904..d51ae46e8 100644 --- a/src/com/android/launcher3/ButtonDropTarget.java +++ b/src/com/android/launcher3/ButtonDropTarget.java @@ -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() { -- cgit v1.2.3