From 70b9530f3147663d38875260b48d931793b7d378 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Fri, 11 Feb 2011 09:32:59 -0800 Subject: [PATCH] Fix 3444233: No edge glow when dragging to adjacent screen --- src/com/android/launcher2/Workspace.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 2ea49313e9..75e56ae7ad 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -2941,6 +2941,10 @@ public class Workspace extends SmoothPagedView mDragTargetLayout.onDragExit(); mDragTargetLayout = null; } + // In portrait, need to redraw the edge glow when entering the scroll area + if (getHeight() > getWidth()) { + invalidate(); + } } } } @@ -2951,6 +2955,12 @@ public class Workspace extends SmoothPagedView ((CellLayout) getChildAt(i)).setIsDragOverlapping(false); } mSpringLoadedDragController.onDragExit(); + + // In portrait, workspace is responsible for drawing the edge glow on adjacent pages, + // so we need to redraw the workspace when this may have changed. + if (getHeight() > getWidth()) { + invalidate(); + } } @Override