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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user