summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Felix Stern <fstern@google.com> 2025-02-21 04:39:25 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-02-21 04:39:25 -0800
commitb3bd93dac4b1a7a86de10533072f29eea0d8275c (patch)
treea04b0775c447c08d019bda3739941acb21f832ee
parentbe29e8a3dd616904f014c94121f060eb9fba8d7b (diff)
parent4b04c4f50f7c9f617733990aae1d8c50515aeec0 (diff)
Merge "Wait for IME window to be drawn in testSurfaceRemovedAfterHideSoftInput" into main
-rw-r--r--services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java b/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java
index 856466675a28..037d90ce5df0 100644
--- a/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java
+++ b/services/tests/InputMethodSystemServerTests/src/com/android/inputmethodservice/InputMethodServiceTest.java
@@ -267,8 +267,8 @@ public class InputMethodServiceTest {
final var window = mInputMethodService.getWindow().getWindow();
assertWithMessage("IME window exists").that(window).isNotNull();
- assertWithMessage("IME window showing").that(
- window.getDecorView().getVisibility()).isEqualTo(View.VISIBLE);
+ eventually(() -> assertWithMessage("IME window showing").that(
+ window.getDecorView().getVisibility()).isEqualTo(View.VISIBLE));
mActivity.getWindow().getDecorView().setWindowInsetsAnimationCallback(
new WindowInsetsAnimation.Callback(