Skip to content

Fix settings search highlighting every entry with the same title - #4273

Open
yuvarajvodiboina wants to merge 1 commit into
mihonapp:mainfrom
yuvarajvodiboina:fix-4246-settings-search-duplicate-titles
Open

yuvarajvodiboina wants to merge 1 commit into
mihonapp:mainfrom
yuvarajvodiboina:fix-4246-settings-search-duplicate-titles

Conversation

@yuvarajvodiboina

@yuvarajvodiboina yuvarajvodiboina commented Nov 9, 2026 •

Copy link
Copy Markdown

Closes #4246

Settings search only passed the title of the opened result to the settings screen, so every heading and item with that title was highlighted, and the list scrolled to the first one. For example, opening the "Library > Global update" result for "Categories" also highlighted the "Categories" heading at the top of Library and never scrolled down to the item.

Search results now carry a key with the title, whether the entry is a group heading, and which entry of that kind with that title it is. The settings screen highlights and scrolls to that entry only. The onboarding "Restore" shortcut had the same problem with the Backup heading and item, and now points to the item.

Tested on an emulator (API 36): opening the heading result highlights only the heading, and opening the Global update result scrolls to and highlights only that item. PreferenceScreenTest covers the keys and the lookup.

Images

Searching "Categories" in settings. The highlight blinks, so these are taken mid-blink.

Opened result Before After
Library > Global update > Categories before-global-update-result after-global-update-result
Library > Categories (heading) before-heading-result after-heading-result

Copilot AI balanced review requested due to automatic review settings November 9, 2026 14:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

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.

Settings entries with identical title causes inconsistency when searching

2 participants