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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user