光环助手V4.0.0-游戏历史版本功能20200508测试问题2 https://gitlab.ghzs.com/pm/halo-app-issues/-/issues/832

This commit is contained in:
Jack
2020-05-08 11:47:43 +08:00
parent 14e8020147
commit 051000e4a8

View File

@ -62,19 +62,19 @@ class DescAdapter(context: Context,
override fun getItemViewType(position: Int): Int {
val descItemData = descItemList[position]
return when (descItemData.type) {
"gallery" -> IMAGE_GALLERY
"video" -> VIDEOS
"comment" -> COMMENTS
"info" -> GAME_DETAIL
"update" -> UPDATE_CONTENT
"server" -> LATEST_SERVICE
"related_version" -> RELATED_VERSION
"image_recommend" -> IMAGE
"libao" -> LIBAO
"article" -> INFO_RAIDERS
"related_game" -> RECOMMENDED_GAMES
"custom_column" -> CUSTOM_COLUMN
"notice" -> NOTICE
DetailEntity.Type.IMAGE_GALLERY.value -> IMAGE_GALLERY
DetailEntity.Type.VIDEOS.value -> VIDEOS
DetailEntity.Type.COMMENTS.value -> COMMENTS
DetailEntity.Type.GAME_INFO.value -> GAME_DETAIL
DetailEntity.Type.UPDATE_CONTENT.value -> UPDATE_CONTENT
DetailEntity.Type.LATEST_SERVER.value -> LATEST_SERVICE
DetailEntity.Type.RELATED_VERSION.value -> RELATED_VERSION
DetailEntity.Type.IMAGE.value -> IMAGE
DetailEntity.Type.LIBAO.value -> LIBAO
DetailEntity.Type.INFO_GUIDE.value -> INFO_RAIDERS
DetailEntity.Type.RECOMMENDED_GAMES.value -> RECOMMENDED_GAMES
DetailEntity.Type.CUSTOM_COLUMN.value -> CUSTOM_COLUMN
DetailEntity.Type.NOTICE.value -> NOTICE
DetailEntity.Type.INFERIOR_CUSTOM_COLUMN.value -> INFERIOR_CUSTOM_COLUMN
else -> FOOTER
}
@ -233,7 +233,8 @@ class DescAdapter(context: Context,
detailEntity.shouldBoundTogetherWithPreviousItem,
detailEntity.shouldBoundTogetherWithNextItem)
viewHolder.binding.contentTv.setTextWithHighlightedTextWrappedInsideWrapper(customColumn.des ?: "", copyClickedText = true)
viewHolder.binding.contentTv.setTextWithHighlightedTextWrappedInsideWrapper(customColumn.des
?: "", copyClickedText = true)
viewHolder.binding.recyclerview.isNestedScrollingEnabled = false
viewHolder.binding.recyclerview.layoutManager = if (customColumn.showInfoTagDes == true) {
@ -289,7 +290,8 @@ class DescAdapter(context: Context,
viewHolder.binding.contentTv.setExpandMaxLines(maxDesLines)
viewHolder.binding.contentTv.setIsExpanded(Int.MAX_VALUE == maxDesLines)
viewHolder.binding.customColumn = customColumn
viewHolder.binding.contentTv.setTextWithHighlightedTextWrappedInsideWrapper(customColumn.des ?: "", copyClickedText = true)
viewHolder.binding.contentTv.setTextWithHighlightedTextWrappedInsideWrapper(customColumn.des
?: "", copyClickedText = true)
viewHolder.binding.recyclerview.isNestedScrollingEnabled = false
viewHolder.binding.recyclerview.layoutManager = if (customColumn.showInfoTagDes == true) {
LinearLayoutManager(mContext)
@ -480,7 +482,7 @@ class DescAdapter(context: Context,
?: GameEntity(), mEntrance, "更新内容")
mContext.startActivity(intent)
}
holder.binding.historyVersionTv.goneIf(updateContent?.historyApkStatus != "on")
holder.binding.historyVersionTv.goneIf(updateContent?.historyApkCount == 0)
holder.binding.contentTv.setExpandCallback {
MtaHelper.onEvent("游戏详情_新", "展开更新内容", gameName)
}