fix:【光环助手】同一页面使用相同样式组件的图片复用 https://jira.shanqu.cc/browse/GHZS-5197
This commit is contained in:
@ -36,6 +36,8 @@ data class CommonCollectionEntity(
|
||||
|
||||
@Parcelize
|
||||
data class CommonCollectionContentEntity(
|
||||
@SerializedName("_id")
|
||||
private val _id: String? = null,
|
||||
val title: String = "",
|
||||
val style: String = "",
|
||||
val image: String = "",
|
||||
@ -45,4 +47,8 @@ data class CommonCollectionContentEntity(
|
||||
var addedContent1: String? = "",
|
||||
@SerializedName("added_content_2")
|
||||
var addedContent2: String? = "",
|
||||
) : Parcelable
|
||||
) : Parcelable {
|
||||
|
||||
val id: String
|
||||
get() = _id ?: ""
|
||||
}
|
||||
@ -32,7 +32,7 @@ class CustomCommonCollectionAdapter(
|
||||
}
|
||||
|
||||
override fun getKey(t: CommonCollectionContentEntity): String {
|
||||
return t.title
|
||||
return t.id
|
||||
}
|
||||
|
||||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): CustomCommonCollectionItemViewHolder {
|
||||
|
||||
Reference in New Issue
Block a user