Skip to content

Commit 791b1c8

Browse files
committed
do not truncate titleHorizontalOffset in rounded bars
1 parent dcc889d commit 791b1c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arcprogressstackview/src/main/java/devlight/io/library/ArcProgressStackView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ protected void onDraw(final Canvas canvas) {
911911
(float) (Math.PI / 180.0F) * progress * model.mBounds.width() * 0.5F;
912912
final String title = (String) TextUtils.ellipsize(
913913
model.getTitle(), mTextPaint,
914-
progressLength - titleHorizontalOffset * 2, TextUtils.TruncateAt.END
914+
progressLength - titleHorizontalOffset * (mIsRounded ? 0 : 2), TextUtils.TruncateAt.END
915915
);
916916
canvas.drawTextOnPath(
917917
title,

0 commit comments

Comments
 (0)