From bce76e8fd94a048185b660072b681bf72decb3f8 Mon Sep 17 00:00:00 2001 From: Tom Wojciechowski Date: Fri, 4 Oct 2024 15:29:53 +0100 Subject: [PATCH] if native field is not open, we just report height, do not include nativeInput height adjustments --- .../com/badlogic/gdx/backends/android/DefaultAndroidInput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }