Merge "TaskFragment without running activity cannot occlude others" into sc-v2-dev

This commit is contained in:
Louis Chang
2021-09-24 00:38:52 +00:00
committed by Android (Google) Code Review

View File

@@ -107,8 +107,9 @@ class EnsureActivitiesVisibleHelper {
final TaskFragment childTaskFragment = child.asTaskFragment();
childTaskFragment.updateActivityVisibilities(starting, configChanges,
preserveWindows, notifyClients);
mBehindFullyOccludedContainer |= childTaskFragment.getBounds().equals(
mTaskFragment.getBounds());
mBehindFullyOccludedContainer |=
childTaskFragment.topRunningActivity() != null
&& childTaskFragment.getBounds().equals(mTaskFragment.getBounds());
if (mAboveTop && mTop.getTaskFragment() == childTaskFragment) {
mAboveTop = false;
}