Skip to content

Focus search input on navigation reselection#3071

Open
coyaSONG wants to merge 4 commits into
recloudstream:masterfrom
coyaSONG:fix/search-nav-reselection-focus
Open

Focus search input on navigation reselection#3071
coyaSONG wants to merge 4 commits into
recloudstream:masterfrom
coyaSONG:fix/search-nav-reselection-focus

Conversation

@coyaSONG

Copy link
Copy Markdown

Summary

  • focus the search input when the already-selected Search bottom-navigation item is tapped again
  • reopen the software keyboard from the active SearchFragment
  • leave first-time Search navigation and existing search state unchanged

Validation

  • git diff --check
  • Gradle configured the prerelease-debug compile task successfully, but the local environment has no Android SDK; the repository pull-request workflow remains the authoritative ABI, build, lint, and test validation

AI assistance: OpenAI Codex. The contribution was checked against the repository's current README and pull-request workflow before implementation.

Closes #3070

@KingLucius

Copy link
Copy Markdown
Contributor

@KingLucius

Copy link
Copy Markdown
Contributor

Can we use requestFocusFromTouch() ?

@coyaSONG
coyaSONG marked this pull request as ready for review July 15, 2026 13:21
@KingLucius

KingLucius commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Please study requestFocusFromTouch() as I know it's focusing the search text and open the keyboard, no need for other code to open the keyboard

@fire-light42

Copy link
Copy Markdown
Collaborator

Please be super careful with focus as we have had issues with this before (#1195). It is recommended to test this on api23 devices to make sure nothing weird happens.

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.

[UX Improvement] Focus searchbar when tapping search navigation item twice

3 participants