修复游戏详情自定义栏目行数设置为0会闪退的问题

This commit is contained in:
juntao
2020-04-29 10:00:40 +08:00
parent f167eff21c
commit d50f29b3dc
2 changed files with 10 additions and 2 deletions

View File

@ -96,7 +96,6 @@ public class ExpandTextView extends AppCompatTextView {
CharSequence content = mSnapshotText.subSequence(start, lastLineEnd);
if (viewWidth - lastLineRight > expandTextWidth) {
// TODO 可能最后一行只有一个字符,这里的 -ADDITIONAL_END_TEXT_COUNT 有隐藏问题
if (mUseGradientAlphaEndText) {
finalEndText = content.toString().substring(content.length() - additionalEndTextCount, content.length()) + mEndText;
finalEndText = finalEndText.replace("\n", " ");