Merge "Exclude finishing ActivityRecord when checking overlay" into tm-qpr-dev

This commit is contained in:
Chris Li
2022-10-10 02:15:54 +00:00
committed by Android (Google) Code Review

View File

@@ -5818,8 +5818,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
// in untrusted mode. Traverse bottom to top with boundary so that it will only check
// activities above this activity.
final ActivityRecord differentUidOverlayActivity = getTask().getActivity(
a -> a.getUid() != getUid(), this /* boundary */, false /* includeBoundary */,
false /* traverseTopToBottom */);
a -> !a.finishing && a.getUid() != getUid(), this /* boundary */,
false /* includeBoundary */, false /* traverseTopToBottom */);
return differentUidOverlayActivity != null;
}