diff options
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index b46aa3d..480dc99 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -181,7 +181,12 @@ public class NotificationPanelView extends PanelView { if (getMeasuredHeight() < mHandleBarHeight) { mStatusBar.switchToSettings(); } else { - mStatusBar.flipToSettings(); + // Do not flip if the drag event started within the top bar + if (MotionEvent.ACTION_DOWN == event.getActionMasked() && event.getY(0) < mHandleBarHeight ) { + mStatusBar.switchToSettings(); + } else { + mStatusBar.flipToSettings(); + } } mOkToFlip = false; } |