OSDN Git Service

Fixing issue where open folder placeholders were not being set to the correct cell...
authorWinson Chung <winsonc@google.com>
Thu, 11 Aug 2011 23:12:00 +0000 (16:12 -0700)
committerWinson Chung <winsonc@google.com>
Thu, 11 Aug 2011 23:12:40 +0000 (16:12 -0700)
Change-Id: I40e9371f60c492b96d7115c2eb3e3efe233612a9

src/com/android/launcher2/Launcher.java

index 0f074ac..f9d3175 100644 (file)
@@ -1666,7 +1666,8 @@ public final class Launcher extends Activity
         FolderInfo info = (FolderInfo) fi.getTag();
         if (info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
             CellLayout cl = (CellLayout) fi.getParent().getParent();
-            cl.setFolderLeaveBehindCell(info.cellX, info.cellY);
+            CellLayout.LayoutParams lp = (CellLayout.LayoutParams) fi.getLayoutParams();
+            cl.setFolderLeaveBehindCell(lp.cellX, lp.cellY);
         }
 
         ObjectAnimator oa = ObjectAnimator.ofPropertyValuesHolder(fi, alpha, scaleX, scaleY);