diff --git a/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/DefaultAndroidInput.java b/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/DefaultAndroidInput.java index 9161e0af8d3..d85ff3ae07e 100644 --- a/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/DefaultAndroidInput.java +++ b/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/DefaultAndroidInput.java @@ -702,7 +702,7 @@ public void onKeyboardHeightChanged (int height, int leftInset, int rightInset, height += getSoftButtonsBarHeight(); } - if (relativeLayoutField == null) { + if (!isNativeInputOpen()) { if (observer != null) observer.onKeyboardHeightChanged(height); return; }