Skip to content

Fix keyborad focus staying true - #4714

Closed
xkello wants to merge 1 commit into
masterfrom
bugfix/fix-app-freeze-and-black-bar
Closed

xkello wants to merge 1 commit into
masterfrom
bugfix/fix-app-freeze-and-black-bar

Conversation

@xkello

@xkello xkello commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Description

On Android, confirming a value in certain text fields and closing the drawer could freeze the app and leave the screen only partially rendered. It showed up in a few places: changing the server during setup, GPS settings (antenna height, network provider), closing an account, and saving a feature form. The cause is that the text field still has active keyboard focus when the drawer starts closing, which leaves Qt's Android text input handling in a bad state.

What changed

Each affected drawer now clears focus from its text field(s) in onAboutToHide, right before the drawer starts closing, instead of leaving it until after.

Updated MMLoginPage.qml (change server drawer), MMSettingsInput.qml (shared settings text input drawer, also used by GPS antenna height and accuracy tolerance), MMNetworkProviderDrawer.qml (IP/port/nickname drawer), MMCloseAccountDialog.qml (close account confirmation), and MMFormController.qml (feature form drawer).

Behavior

Before, confirming or closing one of these drawers on Android could leave the screen half rendered and unresponsive until you tapped another field, or in the feature form case, force a full app restart.

After, focus is dropped before the drawer starts hiding, so the screen redraws properly on its own.

@github-actions

Copy link
Copy Markdown

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build 📬 Mergin Maps 73181 dmg Expires: 22/12/2026 #7318
linux Build ❌ Build failed or not found. #7344
win64 Build 📬 Mergin Maps 65201 win64 Expires: 22/12/2026 #6520
Android Build 📬 Mergin Maps 863011 APK [armeabi-v7a] Expires: 22/12/2026 #8630
📬 QR code Google Play Store #8630
Android Build 📬 Mergin Maps 863051 APK [arm64-v8a] Expires: 22/12/2026 #8630
📬 QR code Google Play Store #8630
iOS Build 📬 Build number: 26.09.957011 #9570

@xkello

xkello commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

@Withalion @tomasMizera re-tests failed. Waiting for device.

@Withalion

Copy link
Copy Markdown
Collaborator

Okay let's close it then as it doesn't fix the issue

@Withalion Withalion closed this Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants