Fixing drag and drop issues with AppsCustomize pane.

- Fixing issue with no-more-space error not showing
- Returning to first page of AllApps when leaving and coming back

Change-Id: If3fb1ba1abae9d453bb71214e44170df91a52189
This commit is contained in:
Winson Chung
2011-05-02 13:35:34 -07:00
parent 8ef4876800
commit fc79c8067e
3 changed files with 50 additions and 6 deletions
+4 -2
View File
@@ -2391,7 +2391,9 @@ public class Workspace extends SmoothPagedView
if (source != this) {
final int[] touchXY = new int[] { (int) mDragViewVisualCenter[0],
(int) mDragViewVisualCenter[1] };
if ((mIsSmall || mIsInUnshrinkAnimation) && !mLauncher.isAllAppsVisible()) {
if (LauncherApplication.isScreenXLarge()
&& (mIsSmall || mIsInUnshrinkAnimation)
&& !mLauncher.isAllAppsVisible()) {
// When the workspace is shrunk and the drop comes from customize, don't actually
// add the item to the screen -- customize will do this itself
((ItemInfo) dragInfo).dropPos = touchXY;
@@ -2893,7 +2895,7 @@ public class Workspace extends SmoothPagedView
mLastDragYOffset = yOffset;
layout = findMatchingPageForDragOver(dragView, left, top, xOffset, yOffset);
if (layout != mDragTargetLayout) {
if (layout != null && layout != mDragTargetLayout) {
if (mDragTargetLayout != null) {
mDragTargetLayout.setIsDragOverlapping(false);
mSpringLoadedDragController.onDragExit();