Fixing issue with items not being removed from the homescreen. (3392097)
Change-Id: Ia3952a1001a83543f97625bdbe032a70e813a7c7
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index 842f2f3..24b9d5f 100644
--- a/src/com/android/launcher2/Workspace.java
+++ b/src/com/android/launcher2/Workspace.java
@@ -2737,7 +2737,8 @@
}
for (int i = 0; i < screenCount; i++) {
- final CellLayout layout = (CellLayout) getChildAt(i);
+ final CellLayoutChildren layout =
+ (CellLayoutChildren) ((CellLayout) getChildAt(i)).getChildAt(0);
// Avoid ANRs by treating each screen separately
post(new Runnable() {