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

Commit 3c477492 authored by Tony's avatar Tony
Browse files

Fix duration when scrolling back to launch LAST_TASK

Bug: 111926330
Change-Id: Ief8b5eb3dc2c50a1a06ea9e3adbf89f6c1cf157b
parent db3d82a8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1001,8 +1001,9 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity> {
            if (SWIPE_HOME.get()) {
                setShelfState(ShelfAnimState.OVERVIEW, interpolator, duration);
            }
        } else if (endTarget == NEW_TASK) {
            // Let RecentsView handle the scrolling to the task, which we launch in startNewTask().
        } else if (endTarget == NEW_TASK || endTarget == LAST_TASK) {
            // Let RecentsView handle the scrolling to the task, which we launch in startNewTask()
            // or resumeLastTaskForQuickstep().
            if (mRecentsView != null) {
                duration = Math.max(duration, mRecentsView.getScroller().getDuration());
            }