Skip to content

Commit 1afc3b6

Browse files
committed
fix: remove unnecessary lineCount check
1 parent 6816928 commit 1afc3b6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

readmoretextview/src/main/java/com/borjabravo/readmoretextview/ReadMoreTextView.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ private CharSequence getTrimmedText(CharSequence text) {
157157
if (trimMode == TRIM_MODE_LINES) {
158158
if (text != null && lineEndIndex > 0) {
159159
if (readMore) {
160-
if (getLayout().getLineCount() > trimLines) {
161-
return updateCollapsedText();
162-
}
160+
return updateCollapsedText();
163161
} else {
164162
return updateExpandedText();
165163
}

0 commit comments

Comments
 (0)