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

Commit d058dcf2 authored by android-build-team Robot's avatar android-build-team Robot Committed by android-build-merger
Browse files

Merge "Resume swipe up when notification shade is opened" into pi-dev am: 0c664986

am: a6c4a09f

Change-Id: Id21ef4d4b80e0827e674ba2eeba675c85b5d4577
parents 26f1b66b a6c4a09f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture
    private boolean mDownOnRecents;
    private VelocityTracker mVelocityTracker;
    private boolean mIsInScreenPinning;
    private boolean mNotificationsVisibleOnDown;

    private boolean mDockWindowEnabled;
    private boolean mDockWindowTouchSlopExceeded;
@@ -108,6 +109,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture
    public boolean onInterceptTouchEvent(MotionEvent event) {
        if (event.getActionMasked() == MotionEvent.ACTION_DOWN) {
            mIsInScreenPinning = mNavigationBarView.inScreenPinning();
            mNotificationsVisibleOnDown = !mStatusBar.isPresenterFullyCollapsed();
        }
        if (!canHandleGestures()) {
            return false;
@@ -274,7 +276,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture

    private boolean canHandleGestures() {
        return !mIsInScreenPinning && !mStatusBar.isKeyguardShowing()
                && mStatusBar.isPresenterFullyCollapsed();
                && !mNotificationsVisibleOnDown;
    }

    private int calculateDragMode() {