Wait for user switched to avoid install failure

The Home Test apk install might fail due to
user switch not finishing in time.
This results in the new created user not having a
default home application and test failure.

Add sleep to ensure secondary user has time and
boot completely.

(cherry-picked from aosp/1909182)

Bug: 208673477
Test: atest ShortcutManagerMultiuserTest
Change-Id: Icfaa60302e82e87e99c0f5eaa62bf4a067a316f6
1 file changed