OSDN Git Service

Fix issue where we weren't saving span after resize drop (issue 9533407)
authorAdam Cohen <adamcohen@google.com>
Sun, 29 Sep 2013 21:22:48 +0000 (14:22 -0700)
committerAdam Cohen <adamcohen@google.com>
Sun, 29 Sep 2013 21:23:33 +0000 (14:23 -0700)
Change-Id: I760bf505ce9c894aedb6f1d0def63cdc7d39271a

src/com/android/launcher3/Workspace.java

index ab52c4e..9e43dd8 100644 (file)
@@ -2649,8 +2649,8 @@ public class Workspace extends SmoothPagedView
                         }
                     }
 
-                    LauncherModel.moveItemInDatabase(mLauncher, info, container, screenId, lp.cellX,
-                            lp.cellY);
+                    LauncherModel.modifyItemInDatabase(mLauncher, info, container, screenId, lp.cellX,
+                            lp.cellY, item.spanX, item.spanY);
                 } else {
                     // If we can't find a drop location, we return the item to its original position
                     CellLayout.LayoutParams lp = (CellLayout.LayoutParams) cell.getLayoutParams();