Fixed search bar selection behavior #1099
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Task/Issue URL: https://app.asana.com/0/414730916066338/1199931182139250/f
Tech Design URL:
CC:
Description:
When we fixed the requery pixels (#1065) we also had to tune the search bar behavior, causing a side effect where URLs in thee search bar would never be selected when the user taps on the search bar.
This PR fixes that issue
Steps to test this PR:
install/update from this branch
Ensure tests in https://app.asana.com/0/0/1199922227966104/f pass (to see when rq pixels are sent, filter by
rq_in logcat)install/update from this branch
open app and tap on search bar
search for "reddit"
select "🔎 reddit"
tap on the search bar
verify text is not selected and autocomplete results show up
open the first URL in the SERP
tap on the search bar
verify URL text is selected
Internal references:
Software Engineering Expectations
Technical Design Template