Skip to content

fix[animated-circle] Android plugin is not changing text size #584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cleanup
  • Loading branch information
vallemar authored May 8, 2024
commit ca38b7772b0eb2b618228d62ff34e16090809ef9
6 changes: 3 additions & 3 deletions packages/animated-circle/index.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class AnimatedCircle extends AnimatedCircleCommon {
this.android.setInnerContourSize(0);
this.android.setText(this.text);
this.android.setTextSize(this._textSize);
this.android.setTextColor(this._textColor.argb);
this.android.setTextColor(this._textColor.argb);
if (this.animated) {
this.android.setValueAnimated(this.progress);
} else {
Expand Down Expand Up @@ -228,8 +228,8 @@ export class AnimatedCircle extends AnimatedCircleCommon {
}

set textSize(value: number) {
this._textSize = Utils.layout.toDevicePixels(this.getNumber(value));
this.android?.setTextSize(this._textSize);
this._textSize = Utils.layout.toDevicePixels(this.getNumber(value));
this.android?.setTextSize(this._textSize);
}

get textSize() {
Expand Down