summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-08-19 01:48:38 (GMT)
committerSunny Goyal <sunnygoyal@google.com>2015-08-19 01:49:08 (GMT)
commit7c3cccf427be23990d7bbc797a3106de69389586 (patch)
tree246edf10b4d19da436732bb4496f9bce196fc960
parent9fc953b94dbc6b99e6de08c9dcc80a0cb8e3e319 (diff)
downloadandroid_packages_apps_Trebuchet-7c3cccf427be23990d7bbc797a3106de69389586.zip
android_packages_apps_Trebuchet-7c3cccf427be23990d7bbc797a3106de69389586.tar.gz
android_packages_apps_Trebuchet-7c3cccf427be23990d7bbc797a3106de69389586.tar.bz2
Fixing empty screen created at the end, even when dragging the last item on the last screen.
Change-Id: If0d4faf0ca15e71facb6ed2fd81ed6a589527836
-rw-r--r--src/com/android/launcher3/Workspace.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index 61d09a9..44d70ba 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -2319,14 +2319,14 @@ public class Workspace extends PagedView
throw new IllegalStateException(msg);
}
- DragView dv = mDragController.startDrag(b, dragLayerX, dragLayerY, source, child.getTag(),
- DragController.DRAG_ACTION_MOVE, dragVisualizeOffset, dragRect, scale, accessible);
- dv.setIntrinsicIconScaleFactor(source.getIntrinsicIconScaleFactor());
-
if (child.getParent() instanceof ShortcutAndWidgetContainer) {
mDragSourceInternal = (ShortcutAndWidgetContainer) child.getParent();
}
+ DragView dv = mDragController.startDrag(b, dragLayerX, dragLayerY, source, child.getTag(),
+ DragController.DRAG_ACTION_MOVE, dragVisualizeOffset, dragRect, scale, accessible);
+ dv.setIntrinsicIconScaleFactor(source.getIntrinsicIconScaleFactor());
+
b.recycle();
}