Fix visibility change during entering PIP app transition

In the cl[1], we exclude entering PIP window from app transition.
However, there is a corner case where the visible is actually changed.
In gesture navigation, swiping to home will cause the activity to be
invisible before entering PIP (from recent animation). For this case, we
don't want to exclude it from app transition, otherwise it will commit
the visibility immediately and cause flicker.

[1]: I2bb781fb362518f5f11c4c8ad65eb5d2f33a5dfd

Bug: 225371112
Fix: 232136259
Test: verify locally with swipe to home with PIP app
Change-Id: I2acf91d9d4f2f121dc1c26956d8291e37bb4e4be
1 file changed