Simplifying mapCoordInSelfToDescendant

> Removing new object creation (during draw and touch handling)
> Simplifying matrix operation to call invert only once at the end

Change-Id: Iffadd6e9d84997baa36719ed688a7c3c1027e839
This commit is contained in:
Sunny Goyal
2016-10-28 10:01:00 -07:00
parent 37e4df17cb
commit 5e0e94f0b2
3 changed files with 28 additions and 42 deletions

View File

@@ -172,7 +172,7 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
int[] point = new int[2];
point[0] = (int) ev.getX();
point[1] = (int) ev.getY();
Utilities.mapCoordInSelfToDescendent(mAppsRecyclerView, this, point);
Utilities.mapCoordInSelfToDescendant(mAppsRecyclerView, this, point);
// IF the MotionEvent is inside the search box, and the container keeps on receiving
// touch input, container should move down.