summaryrefslogtreecommitdiff
path: root/src/com/android/launcher2/DragLayer.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-11-28 13:02:56 -0800
committerWinson Chung <winsonc@google.com>2011-11-28 16:24:54 -0800
commite96e5cb768fcc6f1211c8c31fa2da4dcd4e465cc (patch)
tree9de5ce7e779ec7c6d72e13786997ac5babe326b0 /src/com/android/launcher2/DragLayer.java
parent8171d8ce48765cbc9e6ed96ac3dc173a8969616d (diff)
downloadLauncher2-e96e5cb768fcc6f1211c8c31fa2da4dcd4e465cc.tar.gz
Fixing a few landscape issues.
- Fixing issue where widgets/icon names from side pages show in landscape (Bug 5665226) - Fixing issue where the workspace was rendering over the hotseat in landscape (Bug 5665226) - Fixing regression where the market button had no press feedback Change-Id: Idcd890fdddab2d463195c9b3000fe7a0ab357200
Diffstat (limited to 'src/com/android/launcher2/DragLayer.java')
-rw-r--r--src/com/android/launcher2/DragLayer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher2/DragLayer.java b/src/com/android/launcher2/DragLayer.java
index 3c626d46..76dcfd6b 100644
--- a/src/com/android/launcher2/DragLayer.java
+++ b/src/com/android/launcher2/DragLayer.java
@@ -633,6 +633,12 @@ public class DragLayer extends FrameLayout {
@Override
protected int getChildDrawingOrder(int childCount, int i) {
+ // We don't want to prioritize the workspace drawing on top of the other children in
+ // landscape for the overscroll event.
+ if (LauncherApplication.isScreenLandscape(getContext())) {
+ return super.getChildDrawingOrder(childCount, i);
+ }
+
if (mWorkspaceIndex == -1 || mQsbIndex == -1 ||
mLauncher.getWorkspace().isDrawingBackgroundGradient()) {
return i;