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
diff --git a/src/com/android/launcher3/ButtonDropTarget.java b/src/com/android/launcher3/ButtonDropTarget.java
index 3fcc2b9..d51ae46 100644
--- a/src/com/android/launcher3/ButtonDropTarget.java
+++ b/src/com/android/launcher3/ButtonDropTarget.java
@@ -115,6 +115,10 @@
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() {