From a911672f45900fc0ed746e0d84c43c6e5ad89b6a Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Wed, 29 Apr 2015 13:55:58 -0700 Subject: Simplifying add to workspace by not going through the worker thread Change-Id: I3260786bee257aea93ade49e6fa18008232addbe --- src/com/android/launcher3/CellLayout.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/com/android/launcher3/CellLayout.java') diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java index 85653bef7..83919809d 100644 --- a/src/com/android/launcher3/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java @@ -3294,4 +3294,8 @@ public class CellLayout extends ViewGroup { public boolean lastDownOnOccupiedCell() { return mLastDownOnOccupiedCell; } + + public boolean findVacantCell(int spanX, int spanY, int[] outXY) { + return Utilities.findVacantCell(outXY, spanX, spanY, mCountX, mCountY, mOccupied); + } } -- cgit v1.2.3