diff --git a/core/src/mindustry/ui/dialogs/BaseDialog.java b/core/src/mindustry/ui/dialogs/BaseDialog.java index 39973b04da..2b3a4be178 100644 --- a/core/src/mindustry/ui/dialogs/BaseDialog.java +++ b/core/src/mindustry/ui/dialogs/BaseDialog.java @@ -51,7 +51,8 @@ public class BaseDialog extends Dialog{ protected void onResize(Runnable run){ Events.on(ResizeEvent.class, event -> { - if(isShown() && Core.scene.getDialog() == this){ + //ignore resize events while the Android text input dialog is shown - this does lead to buggy layout when rotated, but it's better than clearing the text. I don't know of a better solution to the problem + if(isShown() && Core.scene.getDialog() == this && !Core.input.isShowingTextInput()){ run.run(); updateScrollFocus(); } diff --git a/gradle.properties b/gradle.properties index 613b3d1c37..0abbd4cb32 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,4 +26,4 @@ org.gradle.caching=true org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.connectionTimeout=100000 android.enableR8.fullMode=false -archash=9026252e4d +archash=e1ae1436f2