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

Commit e1fdf3e0 authored by Becky Qiu's avatar Becky Qiu
Browse files

[Overview Actions] Add a decelerateInterpolator for motion of select mode.

Test: local
Bug: 157777836

Change-Id: I8cbc14c41e9046aa5993fe4add010acdd612539a
parent 690b8fb3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import static com.android.launcher3.Utilities.mapToRange;
import static com.android.launcher3.Utilities.squaredHypot;
import static com.android.launcher3.Utilities.squaredTouchSlop;
import static com.android.launcher3.anim.Interpolators.ACCEL;
import static com.android.launcher3.anim.Interpolators.ACCEL_0_75;
import static com.android.launcher3.anim.Interpolators.ACCEL_2;
import static com.android.launcher3.anim.Interpolators.FAST_OUT_SLOW_IN;
import static com.android.launcher3.anim.Interpolators.LINEAR;
@@ -1731,7 +1732,7 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl

    private void updatePageOffsets() {
        float offset = mAdjacentPageOffset * getWidth();
        float modalOffset = mTaskModalness * getWidth();
        float modalOffset = ACCEL_0_75.getInterpolation(mTaskModalness) * getWidth();
        if (mIsRtl) {
            offset = -offset;
            modalOffset = -modalOffset;