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
This commit is contained in:
Mathew Inwood
2014-04-11 17:17:39 +01:00
parent 8ac896b8c8
commit b90860a996
+4
View File
@@ -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);