Skip to content

Conversation

@rib
Copy link
Member

@rib rib commented Jan 8, 2026

APP_CMD_SOFTWARE_KB_VIS_CHANGED in the GameActivity backend is intended for notifying the android_main thread that the soft keyboard visibility has changed.

There's currently no Rust event / API for this, and so it wasn't being handled in poll_events but that was leading to a unreachable panic when GameActivity would send this APP_CMD when showing soft keyboards.

We don't currently plan to expose any public API / event for this since it's based on monitoring IME insets and applications should instead be able to check insets after getting InsetsChanged events.

For the sake of minimizing patches to the upstream GameActivity code this makes it so poll_events can ignore this APP_CMD as a NOOP.

Closes: #212

@rib rib requested a review from MarijnS95 January 8, 2026 00:02
@rib rib force-pushed the rib/pr/ignore-app-cmd-software-kb-vis-changed branch from 33cdd89 to 72fd038 Compare January 8, 2026 00:04
APP_CMD_SOFTWARE_KB_VIS_CHANGED in the GameActivity backend is
intended for notifying the android_main thread that the soft keyboard
visibility has changed.

There's currently no Rust event / API for this, and so it wasn't being
handled in poll_events but that was leading to a unreachable panic when
GameActivity would send this APP_CMD when showing soft keyboards.

We don't currently plan to expose any public API / event for this since
it's based on monitoring IME insets and applications should instead be able
to check insets after getting InsetsChanged events.

For the sake of minimizing patches to the upstream GameActivity code
this makes it so poll_events can ignore this APP_CMD as a NOOP.
@rib rib force-pushed the rib/pr/ignore-app-cmd-software-kb-vis-changed branch from 72fd038 to 2876923 Compare January 8, 2026 00:05
@rib rib changed the base branch from rib/pr/android-games-sdk-4-kbd-vis-editor-actions to main January 8, 2026 00:06
Copy link

@nicoburns nicoburns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

3 participants