From d7cb517b4ce10fa98213da18ccdb2261fb797f7c Mon Sep 17 00:00:00 2001 From: Winson Date: Wed, 4 May 2016 16:14:19 -0700 Subject: Fixing regression in enter-recents state. - We should always start the activity when docking to ensure that the launch state is set up correctly. Bug: 28470261 Change-Id: I4aae0dedb95a1c796c72b487b6700da0754e66f3 --- packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java b/packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java index cf18c41b1cd0..297dec92d9b9 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java +++ b/packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java @@ -262,8 +262,9 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener try { // Check if the top task is in the home stack, and start the recents activity SystemServicesProxy ssp = Recents.getSystemServices(); - MutableBoolean isHomeStackVisible = new MutableBoolean(false); - if (!ssp.isRecentsActivityVisible(isHomeStackVisible)) { + boolean forceVisible = launchedWhileDockingTask || draggingInRecents; + MutableBoolean isHomeStackVisible = new MutableBoolean(forceVisible); + if (forceVisible || !ssp.isRecentsActivityVisible(isHomeStackVisible)) { ActivityManager.RunningTaskInfo runningTask = ssp.getRunningTask(); startRecentsActivity(runningTask, isHomeStackVisible.value || fromHome, animate, growTarget); -- cgit v1.2.3-59-g8ed1b