commit | a911672f45900fc0ed746e0d84c43c6e5ad89b6a | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Wed Apr 29 13:55:58 2015 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Wed Apr 29 14:58:17 2015 -0700 |
tree | 97c75b338df8d75b7bbd9ac706d4b5b21ccc8977 | |
parent | 9b03205432c01d02afb0af8813c0b9da540795dc [diff] [blame] |
Simplifying add to workspace by not going through the worker thread Change-Id: I3260786bee257aea93ade49e6fa18008232addbe
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java index 85653be..8391980 100644 --- a/src/com/android/launcher3/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java
@@ -3294,4 +3294,8 @@ public boolean lastDownOnOccupiedCell() { return mLastDownOnOccupiedCell; } + + public boolean findVacantCell(int spanX, int spanY, int[] outXY) { + return Utilities.findVacantCell(outXY, spanX, spanY, mCountX, mCountY, mOccupied); + } }