Fix non-persistence of launcher (broken by reordering changes)

Change-Id: I6fb9cb2257844e642df9b5599188b1cfce35df9b
This commit is contained in:
Adam Cohen committed 2012-03-27 16:54:39 -07:00
1 parent 6a2a2899f7
commit ea889a294b
2 files changed
+9 -17

No files matched your search

+7 -3
View File
@@ -2067,10 +2067,14 @@ public class CellLayout extends ViewGroup {
}
int childCount = mShortcutsAndWidgets.getChildCount();
for (int i = 0; i < childCount; i++) {
LayoutParams lp = (LayoutParams) mShortcutsAndWidgets.getChildAt(i).getLayoutParams();
lp.cellX = lp.tmpCellX;
lp.cellY = lp.tmpCellY;
View child = mShortcutsAndWidgets.getChildAt(i);
LayoutParams lp = (LayoutParams) child.getLayoutParams();
ItemInfo info = (ItemInfo) child.getTag();
info.cellX = lp.cellX = lp.tmpCellX;
info.cellY = lp.cellY = lp.tmpCellY;
}
Workspace workspace = (Workspace) getParent();
workspace.updateItemLocationsInDatabase(this);
}
public void setUseTempCoords(boolean useTempCoords) {