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

Commit f92a34ff authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Clamp scrim progress for slow taskbar animation duration to max 1f

* Overview to workspace taskbar animation changed duration, and
with the new longer duration we no longer need to speed up the
scrim animation.
* The new longer duration was actually slowing down the scrim
interpolator

Fixes: 351911299
Test: Tested on small and large screen.
Tested w/ the flag off and there is a flicker, but that was
present without these changes as well
Flag: EXEMPT bugfix

Change-Id: I5dc219de541f3c2fb29a5a91a4770b0dece0259e
parent 012ad2fc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -110,6 +110,7 @@ public class QuickstepAtomicAnimationFactory extends
            // taskbar icons disappearing before hotseat icons show up.
            float scrimUpperBoundFromSplit =
                    QuickstepTransitionManager.getTaskbarToHomeDuration() / (float) config.duration;
            scrimUpperBoundFromSplit = Math.min(scrimUpperBoundFromSplit, 1f);
            config.setInterpolator(ANIM_OVERVIEW_ACTIONS_FADE, clampToProgress(LINEAR, 0, 0.25f));
            config.setInterpolator(ANIM_SCRIM_FADE,
                    fromState == OVERVIEW_SPLIT_SELECT