Merge "Searching and resuming the visible child Tasks behind invisible one" into tm-qpr-dev

This commit is contained in:
Louis Chang
2022-12-16 00:53:57 +00:00
committed by Android (Google) Code Review

View File

@@ -4920,6 +4920,11 @@ class Task extends TaskFragment {
}
if (child.getVisibility(null /* starting */)
!= TASK_FRAGMENT_VISIBILITY_VISIBLE) {
if (child.topRunningActivity() == null) {
// Skip the task if no running activity and continue resuming next task.
continue;
}
// Otherwise, assuming everything behind this task should also be invisible.
break;
}