[Modify]修復1.6.0bug
This commit is contained in:
@@ -3,6 +3,7 @@ package com.yizhuan.erban.ui.user.adapter
|
||||
import androidx.appcompat.widget.AppCompatTextView
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter
|
||||
import com.chad.library.adapter.base.BaseViewHolder
|
||||
import com.hjq.toast.ToastUtils
|
||||
import com.yizhuan.erban.R
|
||||
import com.yizhuan.erban.ui.user.event.UserLabelEvent
|
||||
import com.yizhuan.xchat_android_core.user.bean.UserLabelItemInfo
|
||||
@@ -24,7 +25,7 @@ class UserLabelAdapter :
|
||||
val tvLabel = helper.getView<AppCompatTextView>(R.id.tv_user_tag)
|
||||
if (item.picked) {
|
||||
mutilSelectedList.add(helper.layoutPosition)
|
||||
}else{
|
||||
} else {
|
||||
mutilSelectedList.remove(helper.layoutPosition)
|
||||
}
|
||||
tvLabel.isSelected = item.picked
|
||||
@@ -34,9 +35,13 @@ class UserLabelAdapter :
|
||||
tvLabel.isSelected = false
|
||||
EventBus.getDefault().post(UserLabelEvent(item.label))
|
||||
} else {
|
||||
mutilSelectedList.add(helper.layoutPosition)
|
||||
tvLabel.isSelected = true
|
||||
EventBus.getDefault().post(UserLabelEvent(item.label))
|
||||
if (mutilSelectedList.size != 20) {
|
||||
mutilSelectedList.add(helper.layoutPosition)
|
||||
tvLabel.isSelected = true
|
||||
EventBus.getDefault().post(UserLabelEvent(item.label))
|
||||
} else {
|
||||
ToastUtils.show(mContext.getString(R.string.max_to_add_label))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -59,6 +59,10 @@
|
||||
android:textColor="@color/color_1F1A4E"
|
||||
android:textSize="@dimen/sp_15"
|
||||
android:textStyle="bold"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:maxEms="8"
|
||||
android:maxLines="1"
|
||||
tools:text="公會名稱" />
|
||||
|
||||
<TextView
|
||||
|
@@ -24,11 +24,11 @@ only_arm64=false
|
||||
|
||||
channel_file=channel.txt
|
||||
|
||||
CRASHLYTICS_COLLECTION_ENABLED=true
|
||||
CRASHLYTICS_COLLECTION_ENABLED=false
|
||||
|
||||
COMPILE_SDK_VERSION=32
|
||||
MIN_SDK_VERSION=21
|
||||
TARGET_SDK_VERSION=32
|
||||
|
||||
version_name=1.5.1
|
||||
version_code=151
|
||||
version_name=1.6.0
|
||||
version_code=160
|
Reference in New Issue
Block a user