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

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

Update Launcher state anim duration for pinned & transient taskbar

* We were syncing the duration of the animation to be at most
that of the taskbar/hotseat animation but only for transient taskbar.
* Now we sync for transient and pinned

Fixes: 328052756
Test: Anim jank doesn't repro
Change-Id: I21f20cbc08a2018498dde3eff871929e5a5b7d7d
parent acec0efb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -135,8 +135,7 @@ public class QuickstepAtomicAnimationFactory extends
                config.duration = Math.max(config.duration, scrollDuration);

                // Sync scroll so that it ends before or at the same time as the taskbar animation.
                if (DisplayController.isTransientTaskbar(mActivity)
                        && mActivity.getDeviceProfile().isTaskbarPresent) {
                if (mActivity.getDeviceProfile().isTaskbarPresent) {
                    config.duration = Math.min(config.duration, TASKBAR_TO_HOME_DURATION);
                }
                overview.snapToPage(DEFAULT_PAGE, Math.toIntExact(config.duration));