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

Commit fdebf0fd authored by Daniel Sandler's avatar Daniel Sandler Committed by Android Git Automerger
Browse files

am c1dc37cb: Merge "You can only use the 2-finger shortcut when opening the panel." into jb-mr1-dev

* commit 'c1dc37cb':
  You can only use the 2-finger shortcut when opening the panel.
parents 07a9ebd1 c1dc37cb
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -35,7 +35,7 @@ public class NotificationPanelView extends PanelView {
    View mHandleView;
    View mHandleView;
    int mFingers;
    int mFingers;
    PhoneStatusBar mStatusBar;
    PhoneStatusBar mStatusBar;
    private boolean mFlipped;
    boolean mOkToFlip;


    public NotificationPanelView(Context context, AttributeSet attrs) {
    public NotificationPanelView(Context context, AttributeSet attrs) {
        super(context, attrs);
        super(context, attrs);
@@ -94,10 +94,10 @@ public class NotificationPanelView extends PanelView {
        if (PhoneStatusBar.SETTINGS_DRAG_SHORTCUT && mStatusBar.mHasFlipSettings) {
        if (PhoneStatusBar.SETTINGS_DRAG_SHORTCUT && mStatusBar.mHasFlipSettings) {
            switch (event.getActionMasked()) {
            switch (event.getActionMasked()) {
                case MotionEvent.ACTION_DOWN:
                case MotionEvent.ACTION_DOWN:
                    mFlipped = false;
                    mOkToFlip = getExpandedHeight() == 0;
                    break;
                    break;
                case MotionEvent.ACTION_POINTER_DOWN:
                case MotionEvent.ACTION_POINTER_DOWN:
                    if (!mFlipped) {
                    if (mOkToFlip) {
                        float miny = event.getY(0);
                        float miny = event.getY(0);
                        float maxy = miny;
                        float maxy = miny;
                        for (int i=1; i<event.getPointerCount(); i++) {
                        for (int i=1; i<event.getPointerCount(); i++) {
@@ -111,7 +111,7 @@ public class NotificationPanelView extends PanelView {
                            } else {
                            } else {
                                mStatusBar.flipToSettings();
                                mStatusBar.flipToSettings();
                            }
                            }
                            mFlipped = true;
                            mOkToFlip = false;
                        }
                        }
                    }
                    }
                    break;
                    break;