Merge "Make activity on visible and focusable leaf tasks be resumed" into sc-dev

This commit is contained in:
Jeff Chang
2021-01-29 01:52:04 +00:00
committed by Android (Google) Code Review

View File

@@ -6041,7 +6041,9 @@ class Task extends WindowContainer<WindowContainer> {
mInResumeTopActivity = true;
if (isLeafTask()) {
someActivityResumed = resumeTopActivityInnerLocked(prev, options);
if (isFocusableAndVisible()) {
someActivityResumed = resumeTopActivityInnerLocked(prev, options);
}
} else {
int idx = mChildren.size() - 1;
while (idx >= 0) {