Skip to content

Dismiss keyboard when collapsing search from a result tap#15

Merged
dfalling merged 1 commit into
mainfrom
fix-resume-search
May 31, 2026
Merged

Dismiss keyboard when collapsing search from a result tap#15
dfalling merged 1 commit into
mainfrom
fix-resume-search

Conversation

@dfalling
Copy link
Copy Markdown
Owner

Summary

  • After reopening a persisted search and tapping a result, the soft keyboard stayed visible. On the first search it was only dismissed as a side effect of pressing the keyboard's search key — never by our own code.
  • collapse() now calls Keyboard.dismiss() explicitly, so every dismiss path (result tap, tap-outside) hides the keyboard consistently.

Testing

Verified on the emulator (with show_ime_with_hard_keyboard enabled so the soft keyboard renders), walking the exact repro — search → select → reopen → select another. dumpsys input_method confirms mInputShown=false after the final selection.

Selecting a result after reopening the search left the soft keyboard up:
on first search it was dismissed only as a side effect of pressing the
keyboard's search key, never by our own code. Collapse now dismisses the
keyboard explicitly so every dismiss path (result tap, tap-outside) hides
it consistently.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dfalling dfalling enabled auto-merge (squash) May 31, 2026 20:41
@dfalling dfalling merged commit c451928 into main May 31, 2026
2 checks passed
@dfalling dfalling deleted the fix-resume-search branch May 31, 2026 20:41
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.

1 participant