Commit f81a83db authored by Marcin Wiacek's avatar Marcin Wiacek Committed by Commit Bot

Shortening ContextualSearchPromoControl.java

Change-Id: Ib0054cbbfd7eb07c59e27e32d9dbd3d2b636c277
Reviewed-on: https://chromium-review.googlesource.com/1244242Reviewed-by: default avatarDonn Denman <donnd@chromium.org>
Commit-Queue: Donn Denman <donnd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#594416}
parent 28e35aaa
...@@ -354,21 +354,13 @@ public class ContextualSearchPromoControl extends OverlayPanelInflater { ...@@ -354,21 +354,13 @@ public class ContextualSearchPromoControl extends OverlayPanelInflater {
// "Allow" button. // "Allow" button.
Button allowButton = (Button) view.findViewById(R.id.contextual_search_allow_button); Button allowButton = (Button) view.findViewById(R.id.contextual_search_allow_button);
allowButton.setOnClickListener(new View.OnClickListener() { allowButton.setOnClickListener(
@Override v -> ContextualSearchPromoControl.this.handlePromoChoice(true));
public void onClick(View v) {
ContextualSearchPromoControl.this.handlePromoChoice(true);
}
});
// "No thanks" button. // "No thanks" button.
Button noThanksButton = (Button) view.findViewById(R.id.contextual_search_no_thanks_button); Button noThanksButton = (Button) view.findViewById(R.id.contextual_search_no_thanks_button);
noThanksButton.setOnClickListener(new View.OnClickListener() { noThanksButton.setOnClickListener(
@Override v -> ContextualSearchPromoControl.this.handlePromoChoice(false));
public void onClick(View v) {
ContextualSearchPromoControl.this.handlePromoChoice(false);
}
});
// Fill in text with link to Settings. // Fill in text with link to Settings.
TextView promoText = (TextView) view.findViewById(R.id.contextual_search_promo_text); TextView promoText = (TextView) view.findViewById(R.id.contextual_search_promo_text);
......
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