diff options
author | Winson Chung <winsonc@google.com> | 2013-08-23 12:55:10 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2013-08-23 12:55:10 -0700 |
commit | 0e6a713fca3261021fcaca62c75dad8486c5e39f (patch) | |
tree | a981481f8b7983b1a9f5ae80110e646048954ba6 /src/com/android/launcher3/Folder.java | |
parent | 892c74d460ad98c6306420e1127c9aa3e505ba25 (diff) | |
download | android_packages_apps_Trebuchet-0e6a713fca3261021fcaca62c75dad8486c5e39f.tar.gz android_packages_apps_Trebuchet-0e6a713fca3261021fcaca62c75dad8486c5e39f.tar.bz2 android_packages_apps_Trebuchet-0e6a713fca3261021fcaca62c75dad8486c5e39f.zip |
Fixing issue where dragging final items out of hot seat folder can causes inconsistency issue.
- Fixing restoring of workspace screens on rotation (and flash of custom content page indicator)
- Fixing NPE on long pressing on empty screen to go into overview mode
Diffstat (limited to 'src/com/android/launcher3/Folder.java')
-rw-r--r-- | src/com/android/launcher3/Folder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Folder.java b/src/com/android/launcher3/Folder.java index 6308bb792..3aa91333c 100644 --- a/src/com/android/launcher3/Folder.java +++ b/src/com/android/launcher3/Folder.java @@ -1062,9 +1062,10 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList mLauncher.removeFolder(mInfo); } // We add the child after removing the folder to prevent both from existing at - // the same time in the CellLayout. + // the same time in the CellLayout. We need to add the new item with addInScreenFromBind() + // to ensure that hotseat items are placed correctly. if (child != null) { - mLauncher.getWorkspace().addInScreen(child, mInfo.container, mInfo.screenId, + mLauncher.getWorkspace().addInScreenFromBind(child, mInfo.container, mInfo.screenId, mInfo.cellX, mInfo.cellY, mInfo.spanX, mInfo.spanY); } } |