diff options
| author | 2025-02-03 17:41:05 +0100 | |
|---|---|---|
| committer | 2025-02-03 17:41:05 +0100 | |
| commit | 2b6fa9ce57a3929468f3cd4f965ba3f40febf5f2 (patch) | |
| tree | 02c370a377f504d92bb11b240e8785320c5577bb | |
| parent | 2025a585e6fa6ad15a46729af0f59acf25463988 (diff) | |
Run showImeWithWindowInsetsController onMainSync
The test testShowHideKeyboard_byApi was calling the show API on the test
thread, and later the hide API on the main thread. This unifies both
calls to be on the main thread.
Flag: EXEMPT testfix
Bug: 394074425
Test: atest InputMethodServiceTest#testShowHideKeyboard_byApi
Change-Id: I5082066bc469aaa3551c01b4ab3bb754d17b672d
| -rw-r--r-- | services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java b/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java index d08715586580..6594691a16b7 100644 --- a/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java +++ b/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java @@ -183,7 +183,7 @@ public class InputMethodServiceTest { setShowImeWithHardKeyboard(true /* enabled */); // Triggers to show IME via public API. - verifyInputViewStatus( + verifyInputViewStatusOnMainSync( () -> assertThat(mActivity.showImeWithWindowInsetsController()).isTrue(), true /* expected */, true /* inputViewStarted */); |