Wait until the transition completes before checking lifecycle state

- The system currently sends the configuration changed callback after the
  transition down completes. Update the CTS test to ensure that we wait
  for the stack bounds to settle before trying to check the number of
  configuration change callbacks.

Bug: 64201795
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testConfigurationChangeOrderDuringTransition
Change-Id: Ia6ace82020cad555da0b77e0a0f8913cffb2fcbe
1 file changed