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

This commit is contained in:
Winson Chung authored and Android (Google) Code Review committed 2013-07-31 17:31:17 +00:00
commit 08ab8d28c6
1 file changed
+5
+5
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);