diff options
| author | 2025-02-20 14:02:17 +0100 | |
|---|---|---|
| committer | 2025-02-20 14:02:17 +0100 | |
| commit | fbcfb86b9af76046781df1d130bcb42d99ec8418 (patch) | |
| tree | b540357ec66de13adcb6c34b3e38a3df8e00d373 /api/coverage/tools | |
| parent | 4fb4149e4df534796ded579fae56d4f8cf56118b (diff) | |
Fix orientation change race conditions in IME test
During setup we first launch the activity and then set the orientation
to natural. In most cases this is already the current orientation, so
nothing changes. However if the previous test changed to a different
orientation, this will trigger an activity re-creation. This could be
slightly delayed after the setup, so we might have input_focus and
temporarily lose it during the test, which will fail any IME requests.
This also removes the freezeRotation call, as setting an orientation
also freezes the rotation. Additionally adds a check to restore the
orientation to natural during teardown.
Flag: EXEMPT testfix
Bug: 397765263
Test: atest InputMethodServiceTest
Change-Id: I383bebd027eca7155c55ca0f450589f0255e589e
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions