Skip to content

Commit

Permalink
[ProgressIndicator] Added missing graphics updates when spec changes.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 592008309
  • Loading branch information
pekingme authored and hunterstich committed Dec 19, 2023
1 parent d9796eb commit 93b3010
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,8 @@ public int getTrackCornerRadius() {
public void setTrackCornerRadius(@Px int trackCornerRadius) {
if (spec.trackCornerRadius != trackCornerRadius) {
spec.trackCornerRadius = min(trackCornerRadius, spec.trackThickness / 2);
spec.validateSpec();
invalidate();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public void setIndicatorSize(@Px int indicatorSize) {
if (spec.indicatorSize != indicatorSize) {
spec.indicatorSize = indicatorSize;
spec.validateSpec();
requestLayout();
invalidate();
}
}
Expand Down

0 comments on commit 93b3010

Please sign in to comment.