From 3c477492de23394ab5f6338b34a7276b728b27b2 Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 6 Feb 2019 11:19:17 -0500 Subject: Fix duration when scrolling back to launch LAST_TASK Bug: 111926330 Change-Id: Ief8b5eb3dc2c50a1a06ea9e3adbf89f6c1cf157b --- quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java index f9495a4d2..6564950ce 100644 --- a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java +++ b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java @@ -1001,8 +1001,9 @@ public class WindowTransformSwipeHandler { 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()); } -- cgit v1.2.3