diff options
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r-- | src/com/android/launcher3/CellLayout.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java index e115e43f5..35598a2f2 100644 --- a/src/com/android/launcher3/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java @@ -709,7 +709,10 @@ public class CellLayout extends ViewGroup { @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); - mCellInfo.screen = ((ViewGroup) getParent()).indexOfChild(this); + if (getParent() instanceof Workspace) { + Workspace workspace = (Workspace) getParent(); + mCellInfo.screenId = workspace.getIdForScreen(this); + } } public void setTagToCellInfoForPoint(int touchX, int touchY) { @@ -3334,7 +3337,7 @@ out: for (int i = x; i < x + spanX - 1 && x < xCount; i++) { int cellY = -1; int spanX; int spanY; - int screen; + long screenId; long container; @Override |