summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/DragLayer.java
diff options
context:
space:
mode:
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 873803d22..915477119 100644
--- a/src/com/android/launcher2/DragLayer.java
+++ b/src/com/android/launcher2/DragLayer.java
@@ -632,6 +632,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;