summaryrefslogtreecommitdiffstats
path: root/src/com/android
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/com/android
parent43e21ac570286cc647ae2458c1a4e640882affcb (diff)
downloadandroid_packages_apps_Trebuchet-70b9530f3147663d38875260b48d931793b7d378.tar.gz
android_packages_apps_Trebuchet-70b9530f3147663d38875260b48d931793b7d378.tar.bz2
android_packages_apps_Trebuchet-70b9530f3147663d38875260b48d931793b7d378.zip
Fix 3444233: No edge glow when dragging to adjacent screen
Diffstat (limited to 'src/com/android')
-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 2ea49313e..75e56ae7a 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