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

Commit 43c70b0c authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "Status bar interaction veto revoked on ups/cancels." into klp-dev

parents 357f9e34 5fee8360
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1737,8 +1737,15 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode {
        }

        if (mStatusBarWindowState == WINDOW_STATE_SHOWING) {
            final boolean upOrCancel =
                    event.getAction() == MotionEvent.ACTION_UP ||
                    event.getAction() == MotionEvent.ACTION_CANCEL;
            if (upOrCancel && !mExpandedVisible) {
                setInteracting(StatusBarManager.WINDOW_STATUS_BAR, false);
            } else {
                setInteracting(StatusBarManager.WINDOW_STATUS_BAR, true);
            }
        }
        return false;
    }