mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Merge "Prevent dragging workspace items to custom content page." into jb-ub-gel-agar
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user