Skip to content

Commit

Permalink
[Badges] Remove the const keyword from size that fits dot badge cal…
Browse files Browse the repository at this point in the history
…culation.

PiperOrigin-RevId: 694127922
  • Loading branch information
loading-google authored and material-automation committed Nov 7, 2024
1 parent 3692400 commit c4743a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Badges/src/MDCBadgeView.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ - (CGSize)sizeThatFits:(CGSize)size {
}

- (CGSize)sizeThatFitsDotBadge:(CGSize)size {
const CGFloat squareDimension = (_dotBadgeInnerRadius + self.layer.borderWidth) * 2;
CGFloat squareDimension = (_dotBadgeInnerRadius + self.layer.borderWidth) * 2;
return CGSizeMake(squareDimension, squareDimension);
}

Expand Down

0 comments on commit c4743a1

Please sign in to comment.