Fixing regression in enter-recents state. am: d7cb517b4c
am: af35d46cf4
* commit 'af35d46cf4c6dc8b100559cbd3ec036092f840c8':
Fixing regression in enter-recents state.
Change-Id: I377fc39bd02e589e04179a360966fe8bb02d8474
This commit is contained in:
@@ -262,8 +262,9 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener
|
|||||||
try {
|
try {
|
||||||
// Check if the top task is in the home stack, and start the recents activity
|
// Check if the top task is in the home stack, and start the recents activity
|
||||||
SystemServicesProxy ssp = Recents.getSystemServices();
|
SystemServicesProxy ssp = Recents.getSystemServices();
|
||||||
MutableBoolean isHomeStackVisible = new MutableBoolean(false);
|
boolean forceVisible = launchedWhileDockingTask || draggingInRecents;
|
||||||
if (!ssp.isRecentsActivityVisible(isHomeStackVisible)) {
|
MutableBoolean isHomeStackVisible = new MutableBoolean(forceVisible);
|
||||||
|
if (forceVisible || !ssp.isRecentsActivityVisible(isHomeStackVisible)) {
|
||||||
ActivityManager.RunningTaskInfo runningTask = ssp.getRunningTask();
|
ActivityManager.RunningTaskInfo runningTask = ssp.getRunningTask();
|
||||||
startRecentsActivity(runningTask, isHomeStackVisible.value || fromHome, animate,
|
startRecentsActivity(runningTask, isHomeStackVisible.value || fromHome, animate,
|
||||||
growTarget);
|
growTarget);
|
||||||
|
|||||||
Reference in New Issue
Block a user