Merge "Allowing activity visible behind translucent adjacent TaskFragments" into sc-v2-dev

This commit is contained in:
Louis Chang
2021-11-03 06:32:05 +00:00
committed by Android (Google) Code Review

View File

@@ -119,8 +119,12 @@ class EnsureActivitiesVisibleHelper {
if (adjacentTaskFragments != null && adjacentTaskFragments.contains(
childTaskFragment)) {
// Everything behind two adjacent TaskFragments are occluded.
mBehindFullyOccludedContainer = true;
if (!childTaskFragment.isTranslucent(starting)
&& !childTaskFragment.getAdjacentTaskFragment().isTranslucent(
starting)) {
// Everything behind two adjacent TaskFragments are occluded.
mBehindFullyOccludedContainer = true;
}
continue;
}