Fix `ExpandableTextView` incorrectly truncating the last character (#2244)

This commit is contained in:
Howard Wu 2022-11-24 13:23:44 +08:00 committed by GitHub
parent 713a66744b
commit d5c52a50df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public class ExpandableTextView extends MaterialTextView {
s = expand; s = expand;
} else { } else {
nextLines = maxLines; nextLines = maxLines;
end = text.length(); end = text.length() + 1;
s = collapse; s = collapse;
} }
sb.clearSpans(); sb.clearSpans();