修复一些闪退问题

This commit is contained in:
kehaoyuan
2020-06-29 22:32:15 +08:00
parent f56b03716a
commit 83cf0687e6

View File

@ -83,7 +83,7 @@ public class ExpandTextView extends AppCompatTextView {
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
super.onLayout(changed, left, top, right, bottom);
if (mMaxLines > 0
&& (mShowExpandTextRegardlessOfMaxLines && !mIsExpanded) || (mInitLayout && !mIsExpanded && getLineCount() > mMaxLines)) {
&& ((mShowExpandTextRegardlessOfMaxLines && !mIsExpanded) || (mInitLayout && !mIsExpanded && getLineCount() > mMaxLines))) {
mSnapshotText = getText();
mInitLayout = false;
showExpandButton();