Merge "Allowing activity visible behind translucent adjacent TaskFragments" into sc-v2-dev am: 9d25f3fbe8 am: a2166f121b

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

Change-Id: I49dd14cac185c3dc2fcaeeae6211ae28d0583645
This commit is contained in:
Louis Chang
2021-11-03 07:01:15 +00:00
committed by Automerger Merge Worker

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