You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Menu keyboard button shows a stale Hide state after Back on API 26 #118
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