Commit 46f13bfb authored by Yu Su's avatar Yu Su Committed by Commit Bot

Fix the Lens chip enablement check in RevampedContextMenuChipController

Change-Id: I225ba3286ccde54bc78eb01be1e4ea6cc8574f1f
Bug: b/172074460
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2511489
Commit-Queue: Yu Su <yusuyoutube@google.com>
Reviewed-by: default avatarBen Goldberger <benwgold@google.com>
Reviewed-by: default avatarSinan Sahin <sinansahin@google.com>
Cr-Commit-Position: refs/heads/master@{#822865}
parent f37873dd
...@@ -119,8 +119,10 @@ class RevampedContextMenuChipController implements View.OnClickListener { ...@@ -119,8 +119,10 @@ class RevampedContextMenuChipController implements View.OnClickListener {
.build(); .build();
} }
if (lensQueryResult != null && lensQueryResult.getIsShoppyIntent() if (lensQueryResult != null
|| LensUtils.isLensShoppingIntentType(lensQueryResult.getLensIntentType())) { && (lensQueryResult.getIsShoppyIntent()
|| LensUtils.isLensShoppingIntentType(
lensQueryResult.getLensIntentType()))) {
showChip(mAnchorView); showChip(mAnchorView);
}; };
} }
......
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