From b90860a99630bbd24f90cc205d8990187b0ed12e Mon Sep 17 00:00:00 2001 From: Mathew Inwood Date: Fri, 11 Apr 2014 17:17:39 +0100 Subject: [PATCH] Expose workspace.moveToDefaultScreen. This is to allow derived launcher classes to move the workspace to the default screen when a drag is started, in case the current screen is not capable of acting as a drop target. Bug: 13962574 Change-Id: I8a6e94ce08be825c344beb708d244d2def5f319f --- src/com/android/launcher3/Launcher.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 9eb82d36b7..c17019048c 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -4567,6 +4567,10 @@ public class Launcher extends Activity return new ShortcutInfo(shortcutIntent, caption, icon); } + protected void moveWorkspaceToDefaultScreen() { + mWorkspace.moveToDefaultScreen(false); + } + public void startDrag(View dragView, ItemInfo dragInfo, DragSource source) { dragView.setTag(dragInfo); mWorkspace.onDragStartedWithItem(dragView);