Skip to content

Commit

Permalink
Uplift of #5412 (squashed) to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
brave-browser-releases authored and samartnik committed May 4, 2020
1 parent b4cbc6f commit c301961
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ protected int getBoundsAfterAccountingForRightButtons(
}
ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams)toolbarButtonsContainer.getLayoutParams();

int rewardsLen = mRewardsLayout == null ? 0 : mRewardsLayout.getWidth();
int rewardsLen = (mRewardsLayout == null || mRewardsLayout.getVisibility() == View.GONE) ? 0
: mRewardsLayout.getWidth();
return toolbarButtonsContainer.getMeasuredWidth() -
mShieldsLayout.getWidth() -
rewardsLen +
Expand Down

0 comments on commit c301961

Please sign in to comment.