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

Commit 45fc6811 authored by Alex Chau's avatar Alex Chau
Browse files

Use ACCEL_DEACCEL when swiping up to enter grid

Bug: 174464863
Test: Test entering grid when swipe up on small and large screens
Change-Id: I0799ef341b8344406de371501dc34a12ac8cbc6e
parent 2b860d29
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -934,7 +934,9 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends
                    duration = Math.min(MAX_SWIPE_DURATION, 2 * baseDuration);
            }
        }
        Interpolator interpolator = endTarget == RECENTS ? OVERSHOOT_1_2 : DEACCEL;
        Interpolator interpolator =
                endTarget == RECENTS ? (mDp.isTablet && FeatureFlags.ENABLE_OVERVIEW_GRID.get()
                        ? ACCEL_DEACCEL : OVERSHOOT_1_2) : DEACCEL;

        if (endTarget.isLauncher) {
            mInputConsumerProxy.enable();