Commit a54cd17b authored by Ted Choc's avatar Ted Choc Committed by Commit Bot

Fix the refine arrow showing for what is currently shown.

This CL:
https://chromium-review.googlesource.com/1162674

Introduced adding a space when refining queries, and that breaks
the same as typed check.  The fix is to just trim the typed text
before the comparison.

BUG=875756

Change-Id: Ie7d55d6a0322d7be4fb6d62cd146eeaa79d34a03
Reviewed-on: https://chromium-review.googlesource.com/1181501Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Ted Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#584488}
parent 4d071315
...@@ -335,8 +335,8 @@ class SuggestionView extends ViewGroup { ...@@ -335,8 +335,8 @@ class SuggestionView extends ViewGroup {
mContentsView.mTextLine2.setSingleLine(); mContentsView.mTextLine2.setSingleLine();
} }
boolean sameAsTyped = boolean sameAsTyped = suggestionItem.getMatchedQuery().trim().equalsIgnoreCase(
suggestionItem.getMatchedQuery().equalsIgnoreCase(mSuggestion.getDisplayText()); mSuggestion.getDisplayText());
int suggestionType = mSuggestion.getType(); int suggestionType = mSuggestion.getType();
if (mSuggestion.isUrlSuggestion()) { if (mSuggestion.isUrlSuggestion()) {
if (mSuggestion.isStarred()) { if (mSuggestion.isStarred()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment