07cd067daf
- With com.android.window.flags.enable_task_stack_observer_in_shell
enabled, the correct task visibilty is reported to TTT, which in
combination with the incomplete TaskStackListener signals results
in tasks being reported as visible when they shouldn't be. This is
most apparent when the top task is excluded from recents, which
results in us attempting to pull the next visible non-excluded task
to show as the current running task (resulting in the live tile/
thumbnail being shown on the wrong task).
Instead, we're expanding the workaround behavior to also check for
any fullscreen task that fills its parent (ie. is not transparent)
and using that as a signal to reset the visiblity of tasks behind it.
Bug: 390564114
Flag: EXEMPT bugfix
Test: Manual, expand PIP above another task and ensure that the other
task's visibility (as reporting in TTT) is invisible if the
expanded PIP task occludes it
Change-Id: Ieaa5460c2671d91f30b75aaf5317ab5ddb42315b