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

Commit ac84e242 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix InputMethodServiceTest#testHideImeWithWindowInsetsController" into main

parents 3e55b3ff a1cd51e6
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -194,8 +194,14 @@ public class InputMethodServiceTest {
                () -> assertThat(mActivity.hideImeWithWindowInsetsController()).isTrue(),
                true /* expected */,
                false /* inputViewStarted */);
        if (mFlagsValueProvider.getBoolean(Flags.FLAG_REFACTOR_INSETS_CONTROLLER)) {
            // The IME visibility is only sent at the end of the animation. Therefore, we have to
            // wait until the visibility was sent to the server and the IME window hidden.
            eventually(() -> assertThat(mInputMethodService.isInputViewShown()).isFalse());
        } else {
            assertThat(mInputMethodService.isInputViewShown()).isFalse();
        }
    }

    /**
     * This checks the result of calling IMS#requestShowSelf and IMS#requestHideSelf.