Merge "TaskFragment without running activity cannot occlude others" into sc-v2-dev am: 2f47fab607

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15884452

Change-Id: I950a257be90c2670c04fdb438c8234503dfb2ae1
This commit is contained in:
Louis Chang
2021-09-24 00:52:18 +00:00
committed by Automerger Merge Worker

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;
}