Skip to content

Tap Search through a long press in the rotation test - #799

Merged
andiwand merged 1 commit into
mainfrom
fix-search-rotation-flake
Dec 5, 2026
Merged

andiwand merged 1 commit into
mainfrom
fix-search-rotation-flake

Conversation

@andiwand

@andiwand andiwand commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

searchNavigationStaysAccessibleAcrossRotation failed on #798, #794 and #796, on different API levels and editions, always the same way: no find bar (R.id.edit) after tapping Search. The view dump shows the action mode stub still gone and the buttons still up, so the tap never arrived.

A slow emulator stretches Espresso's tap into a long press, which on a DocumentActions button only raises the tooltip. The Edit taps already go through clickThroughLongPress() for this; the Search tap now does too.

A slow emulator stretches the tap into a long press, which only raises
the button's tooltip; the find bar never opened. Edit's taps already
retry this way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FW6WZWgKWFwEvg5CbPdrFr
@andiwand
andiwand merged commit 97ae43e into main Dec 5, 2026
7 of 9 checks passed
@andiwand
andiwand deleted the fix-search-rotation-flake branch December 5, 2026 19:34
andiwand added a commit that referenced this pull request Dec 5, 2026
…802)

A slow API 26 emulator stretches a tap into a long press, which on an
action bar item only raises its tooltip. #799 retried Search this way;
Next, Previous and close are action bar items too.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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