Merge "Fixes unable to start recents activity" into sc-dev
This commit is contained in:
@@ -171,7 +171,8 @@ class RecentsAnimation implements RecentsAnimationCallbacks, OnRootTaskOrderChan
|
|||||||
final boolean hasExistingActivity = targetActivity != null;
|
final boolean hasExistingActivity = targetActivity != null;
|
||||||
if (hasExistingActivity) {
|
if (hasExistingActivity) {
|
||||||
mRestoreTargetBehindRootTask = getRootTaskAbove(targetRootTask);
|
mRestoreTargetBehindRootTask = getRootTaskAbove(targetRootTask);
|
||||||
if (mRestoreTargetBehindRootTask == null) {
|
if (mRestoreTargetBehindRootTask == null
|
||||||
|
&& targetRootTask.getTopMostTask() == targetActivity.getTask()) {
|
||||||
notifyAnimationCancelBeforeStart(recentsAnimationRunner);
|
notifyAnimationCancelBeforeStart(recentsAnimationRunner);
|
||||||
ProtoLog.d(WM_DEBUG_RECENTS_ANIMATIONS,
|
ProtoLog.d(WM_DEBUG_RECENTS_ANIMATIONS,
|
||||||
"No root task above target root task=%s", targetRootTask);
|
"No root task above target root task=%s", targetRootTask);
|
||||||
|
|||||||
Reference in New Issue
Block a user