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