Merge "Fixes unable to start recents activity" into sc-dev am: e4e799c79e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14097768

Change-Id: I5d38b09387efd118d4524cb987fd9406effb831f
This commit is contained in:
Louis Chang
2021-04-06 13:18:43 +00:00
committed by Automerger Merge Worker

View File

@@ -171,7 +171,8 @@ class RecentsAnimation implements RecentsAnimationCallbacks, OnRootTaskOrderChan
final boolean hasExistingActivity = targetActivity != null;
if (hasExistingActivity) {
mRestoreTargetBehindRootTask = getRootTaskAbove(targetRootTask);
if (mRestoreTargetBehindRootTask == null) {
if (mRestoreTargetBehindRootTask == null
&& targetRootTask.getTopMostTask() == targetActivity.getTask()) {
notifyAnimationCancelBeforeStart(recentsAnimationRunner);
ProtoLog.d(WM_DEBUG_RECENTS_ANIMATIONS,
"No root task above target root task=%s", targetRootTask);