Commit d82c2465 authored by Theresa's avatar Theresa Committed by Commit Bot

[EoC + Duet] Center the EoC icon in its bounding box

Center the EoC icon in its bounding box when Duet is enabled.

BUG=859592

Change-Id: I7c1e016e2454ab5abb212c229b3b16450b553e7b
Reviewed-on: https://chromium-review.googlesource.com/1166245Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Commit-Queue: Theresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581699}
parent 77ccf1d3
...@@ -2815,6 +2815,10 @@ public class ToolbarPhone extends ToolbarLayout ...@@ -2815,6 +2815,10 @@ public class ToolbarPhone extends ToolbarLayout
if (mExperimentalButton == null) { if (mExperimentalButton == null) {
ViewStub viewStub = findViewById(R.id.experimental_button_stub); ViewStub viewStub = findViewById(R.id.experimental_button_stub);
mExperimentalButton = (TintedImageButton) viewStub.inflate(); mExperimentalButton = (TintedImageButton) viewStub.inflate();
if (FeatureUtilities.isBottomToolbarEnabled()) {
mExperimentalButton.setPadding(0, 0, 0, 0);
}
} else { } else {
assert mExperimentalButton.getVisibility() assert mExperimentalButton.getVisibility()
== View.GONE : "#disableExperimentalButton() should be called first."; == View.GONE : "#disableExperimentalButton() should be called first.";
......
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