Loading
Validate visibility when finishing transition
If the transition info doesn't contain any visible modes,
then recover the visible state of surface for the correspond
window container.
This avoids showing blank screen by an incomplete transition
that hides task or display area unexpectedly.
Bug: 273206473
Fix: 269732484
Test: Assume a task X has an Activity A.
Consecutive steps:
Start B: X[A, B]
Start A' with FLAG_ACTIVITY_CLEAR_TOP to finish [A, B]
Final: X[A']
The surface of Task X and its parent should be visible.
Change-Id: Id9de134a2ddc04f7ed7fb2d3c67d7337261c5ba7