Skip to content

Commit

Permalink
Merge pull request #8301 from brave/pr8297_android_shields_button_sta…
Browse files Browse the repository at this point in the history
…te_1.22.x

[Android] Updates shields button state on changing toolbar variations (uplift to 1.22.x)
  • Loading branch information
kjozwiak authored Mar 19, 2021
2 parents 27cf5ef + a89d722 commit fd00bce
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,9 @@ protected void onDraw(Canvas canvas) {
if (BraveReflectionUtil.EqualTypes(this.getClass(), CustomTabToolbar.class)
|| BraveReflectionUtil.EqualTypes(this.getClass(), ToolbarPhone.class)) {
updateMenuButtonState();
if (getToolbarDataProvider() != null && getToolbarDataProvider().getTab() != null) {
updateBraveShieldsButtonState(getToolbarDataProvider().getTab());
}
}
super.onDraw(canvas);
}
Expand Down

0 comments on commit fd00bce

Please sign in to comment.