补充镜像游戏的镜像下载选项

This commit is contained in:
chenjuntao
2020-06-29 20:51:36 +08:00
parent 74fdec9d72
commit 20ae9fe0ec
2 changed files with 25 additions and 5 deletions

View File

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