Ensure that window gets to a drawn state

- With legacy transitions the window draw state doesn't to change to
  HAS_DRAWN. performShowLocked() needs to complete to change the draw
  state.
- isReadyForDisplay() should return true even when mToken.isVisible()
  return false

Flag: EXEMPT (Bug fix)
Fix: 359783169
Bug: 338426357
Test: atest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8e88c9275d536dfc8f7b052ef4f4b7067c291043)
Merged-In: I6902178168250be9949af1d367bd4a02982508c3
Change-Id: I6902178168250be9949af1d367bd4a02982508c3
1 file changed