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

Commit ffbb5444 authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Don't allow swiping down from overview in fallback recents" into ub-launcher3-master

parents 7eff40ff 6e359146
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -131,7 +131,9 @@ public class PortraitStatesTouchController extends AbstractStateChangeTouchContr
            directionsToDetectScroll = SwipeDetector.DIRECTION_POSITIVE;
            mStartContainerType = ContainerType.HOTSEAT;
        } else if (mLauncher.isInState(OVERVIEW)) {
            directionsToDetectScroll = SwipeDetector.DIRECTION_BOTH;
            boolean canSwipeDownFromOverview = getTargetState(OVERVIEW, false) != OVERVIEW;
            directionsToDetectScroll = canSwipeDownFromOverview ? SwipeDetector.DIRECTION_BOTH
                    : SwipeDetector.DIRECTION_POSITIVE;
            mStartContainerType = ContainerType.TASKSWITCHER;
        } else {
            return 0;