Merge "Prevent dragging workspace items to custom content page." into jb-ub-gel-agar

This commit is contained in:
Winson Chung
2013-07-31 17:31:16 +00:00
committed by Android (Google) Code Review

View File

@@ -3705,6 +3705,11 @@ public class Workspace extends SmoothPagedView
final int page = getNextPage() +
(direction == DragController.SCROLL_LEFT ? -1 : 1);
// Ensure that we are not dragging over to the custom content screen
if (getScreenIdForPageIndex(page) == CUSTOM_CONTENT_SCREEN_ID) {
return false;
}
// We always want to exit the current layout to ensure parity of enter / exit
setCurrentDropLayout(null);