From 7345b54f18ff7e045f22b72192a7098c95dedb59 Mon Sep 17 00:00:00 2001 From: grorp Date: Sun, 27 Jul 2025 20:24:21 +0200 Subject: [PATCH] Android: Workaround for partially broken inputs --- src/client/game_formspec.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client/game_formspec.cpp b/src/client/game_formspec.cpp index 407b1d9d9..abd70b2e6 100644 --- a/src/client/game_formspec.cpp +++ b/src/client/game_formspec.cpp @@ -563,8 +563,10 @@ bool GameFormSpec::handleCallbacks() #ifdef __ANDROID__ bool GameFormSpec::handleAndroidUIInput() { - if (m_formspec) { - m_formspec->getAndroidUIInput(); + // FIXME: m_formspec and this value are not in sync at all times. + GUIModalMenu *menu = g_menumgr.tryGetTopMenu(); + if (menu) { + menu->getAndroidUIInput(); return true; } return false;