Skip to content

Menu keyboard button shows a stale Hide state after Back on API 26 #118

Open

Description

@moikdev

Follow-up from #115 / PR #117 (audit round 2). Part of #1/#69/#71.

Observed (real frame): on the Android 8.0 / API 26 phone emulator at 200% font, open Emoji Actions with the action-search keyboard shown, then press system Back once. The keyboard hides and the menu stays open, which is the defined keyboard-first behavior. But the menu's keyboard button keeps showing its Hide icon and label. Frame: docs/screenshots/emoji-menu-back/v6-legacy200/emojiactionsbackhideskeyboardbeforeclosingmenu-actions-shown-first-back.png in PR #117.

Inferred from code, not yet executed: the button computes keyboardRequested = !imeVisible from Compose WindowInsets.isImeVisible (PaletteMenus.kt), which lags the system on API < 30. So the next tap would request Hide and do nothing, showing the keyboard would take a second tap, and TalkBack would announce "Hide action search keyboard" while no keyboard is shown. Before PR #117, Back closed the menu, so this state is now reachable by Back.

Acceptance:

  • Reproduce on API 26 with real before/after frames: tap the button once after keyboard-first Back, and record the actual keyboard and label state.
  • The label, icon and first tap reflect the platform keyboard state on API 26–29 (for example ViewCompat.getRootWindowInsets) without changing API 30+ behavior.
  • Matched old-app control, API 26 at 100%/200%, an API 36 regression, real commit-pinned evidence, and two independent audits per project rules.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions