Commit bfd95cb2 authored by Bernhard Bauer's avatar Bernhard Bauer Committed by Commit Bot

🛃 Get correct views when updating CustomTabToolbar action buttons.

Bug: b/73149793
Change-Id: I9ea2bd9d8bef021b2d36d4eb49d2a5bf74da2f8e
Reviewed-on: https://chromium-review.googlesource.com/911669Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
Commit-Queue: Bernhard Bauer <bauerb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535861}
parent 4e445558
...@@ -215,7 +215,7 @@ public class CustomTabToolbar extends ToolbarLayout implements LocationBar, ...@@ -215,7 +215,7 @@ public class CustomTabToolbar extends ToolbarLayout implements LocationBar,
@Override @Override
public void updateCustomActionButton(int index, Drawable drawable, String description) { public void updateCustomActionButton(int index, Drawable drawable, String description) {
ImageButton button = (ImageButton) getChildAt(index); ImageButton button = (ImageButton) mCustomActionButtons.getChildAt(index);
assert button != null; assert button != null;
updateCustomActionButtonVisuals(button, drawable, description); updateCustomActionButtonVisuals(button, drawable, description);
} }
......
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