Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29fdb24c authored by David van Tonder's avatar David van Tonder Committed by Gerrit Code Review
Browse files

Merge "Bugfix : Quick pulldown sometimes flips when it should not" into cm-10.1

parents b26f3f67 c5e8dca7
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -180,9 +180,14 @@ public class NotificationPanelView extends PanelView {
                if (maxy - miny < mHandleBarHeight) {
                    if (getMeasuredHeight() < mHandleBarHeight) {
                        mStatusBar.switchToSettings();
                    } else {
                        // 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;
                }
            } else if (mSwipeTriggered) {