summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick Dubroy <dubroy@google.com>2011-02-11 09:32:59 -0800
committerPatrick Dubroy <dubroy@google.com>2011-02-11 09:32:59 -0800
commit70b9530f3147663d38875260b48d931793b7d378 (patch)
tree476f52a3555e0384f50607179f092844b8eb25be /src
parent43e21ac570286cc647ae2458c1a4e640882affcb (diff)
downloadpackages_apps_trebuchet-70b9530f3147663d38875260b48d931793b7d378.zip
packages_apps_trebuchet-70b9530f3147663d38875260b48d931793b7d378.tar.gz
packages_apps_trebuchet-70b9530f3147663d38875260b48d931793b7d378.tar.bz2
Fix 3444233: No edge glow when dragging to adjacent screen
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/Workspace.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index 2ea4931..75e56ae 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