TaskFragment without running activity cannot occlude others
A TaskFragment that doesn't contain any running activity should not occlude the activities behind. Bug: 200316506 Test: TaskFragmentOrganizerTest Change-Id: I64823680e8adc04f506410aa051bbfe5989cfbaf
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user