修复一些闪退问题
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user