Skip to content

Commit

Permalink
Fix that readLessTextSize attribute is not working for ReadMoreTextVi…
Browse files Browse the repository at this point in the history
…ew (#50)
  • Loading branch information
fornewid authored Feb 15, 2023
1 parent 2d51589 commit 2e3b2a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,9 @@ public class ReadMoreTextView @JvmOverloads constructor(
?: it.getFontFamilyFromTypeface(AppCompatR.styleable.TextAppearance_android_typeface)
}
}
if (ta.hasValue(R.styleable.ReadMoreTextView_readLessTextUnderline)) {
if (ta.hasValue(R.styleable.ReadMoreTextView_readLessTextSize)) {
textSize = ta.getDimensionPixelSize(
R.styleable.ReadMoreTextView_readLessTextUnderline,
R.styleable.ReadMoreTextView_readLessTextSize,
DEFAULT_TEXT_SIZE
)
}
Expand Down

0 comments on commit 2e3b2a4

Please sign in to comment.