Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b6fa9ce authored by Cosmin Băieș's avatar Cosmin Băieș
Browse files

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
parent 2025a585
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */);