Merge "Make activity on visible and focusable leaf tasks be resumed" into sc-dev am: 9c7bfbf651
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13424926 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ifeaebf72ca49e2adb84f87c70b61094f7281a34d
This commit is contained in:
@@ -6041,7 +6041,9 @@ class Task extends WindowContainer<WindowContainer> {
|
|||||||
mInResumeTopActivity = true;
|
mInResumeTopActivity = true;
|
||||||
|
|
||||||
if (isLeafTask()) {
|
if (isLeafTask()) {
|
||||||
someActivityResumed = resumeTopActivityInnerLocked(prev, options);
|
if (isFocusableAndVisible()) {
|
||||||
|
someActivityResumed = resumeTopActivityInnerLocked(prev, options);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
int idx = mChildren.size() - 1;
|
int idx = mChildren.size() - 1;
|
||||||
while (idx >= 0) {
|
while (idx >= 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user