WindowState isSyncFinished should also check isVisibleRequested

WS#isSyncFinished could pass too early when the visibility is gone,
which make nothing draw on the ActivityRecord. There should also check
isVisibleRequested for that condition.

Bug: 199363064
Test: enable shell transition, quick switch app several times and
verify no flicker happen.
Change-Id: Ia4af7c989159d7f0612a78bfe13853d50955beed
1 file changed