summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2014-04-11 17:17:39 +0100
committerMathew Inwood <mathewi@google.com>2014-04-11 17:22:56 +0100
commitb90860a99630bbd24f90cc205d8990187b0ed12e (patch)
treecd670527cec0832ebb85272fb6a71c047fb252d1
parent8ac896b8c84066c109c2c4b97805f36270636121 (diff)
downloadandroid_packages_apps_Trebuchet-b90860a99630bbd24f90cc205d8990187b0ed12e.tar.gz
android_packages_apps_Trebuchet-b90860a99630bbd24f90cc205d8990187b0ed12e.tar.bz2
android_packages_apps_Trebuchet-b90860a99630bbd24f90cc205d8990187b0ed12e.zip
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
-rw-r--r--src/com/android/launcher3/Launcher.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 9eb82d36b..c17019048 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);