Fixing regression in enter-recents state.

am: d7cb517b4c

* commit 'd7cb517b4ce10fa98213da18ccdb2261fb797f7c':
  Fixing regression in enter-recents state.

Change-Id: I4cd25886dc0013cab64c83a39ef5d62437767eb1
This commit is contained in:
Winson
2016-05-05 00:05:03 +00:00
committed by android-build-merger

View File

@@ -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);