Searching and resuming the visible child Tasks behind invisible one
The top-most Task was invisible because all activities in the Task was finishing. This somehow prevents the activities of Tasks behind from being resumed. Bug: 260691453 Test: atest TaskTests Test: Repro steps on the bug Change-Id: I1fdda18a118915b4328d62e9d0984581fafa4f44
This commit is contained in:
committed by
Charles Chen
parent
601df459c9
commit
3fe70b2b61
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user