From 2e03e9f4f54d8284ff99430f228ebdffe5f39f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E5=AD=90=E7=BB=B4?= Date: Wed, 10 Apr 2024 15:50:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=90=9C=E7=B4=A2=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=B8=93=E5=8C=BA=E6=96=87=E6=A1=88=E4=BF=AE=E6=94=B9=E2=80=94?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=20https://jira.shanqu.cc/browse/GHZ?= =?UTF-8?q?S-5075?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/gh/gamecenter/search/SearchGameIndexAdapter.kt | 3 +-- .../java/com/gh/gamecenter/search/SearchGameResultAdapter.kt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/gh/gamecenter/search/SearchGameIndexAdapter.kt b/app/src/main/java/com/gh/gamecenter/search/SearchGameIndexAdapter.kt index 8e8edc4a3d..13570bfe7f 100644 --- a/app/src/main/java/com/gh/gamecenter/search/SearchGameIndexAdapter.kt +++ b/app/src/main/java/com/gh/gamecenter/search/SearchGameIndexAdapter.kt @@ -27,7 +27,6 @@ import com.gh.gamecenter.common.constant.Constants import com.gh.gamecenter.common.constant.ItemViewType import com.gh.gamecenter.common.exposure.ExposureSource import com.gh.gamecenter.common.utils.* -import com.gh.gamecenter.core.utils.EmptyCallback import com.gh.gamecenter.core.utils.SPUtils import com.gh.gamecenter.core.utils.StringUtils import com.gh.gamecenter.databinding.FmSearchHistoryItemBinding @@ -221,7 +220,7 @@ class SearchGameIndexAdapter( val zoneView = getContentTagView( R.drawable.ic_label_zone, "", - "攻略", + gameEntity.contentTag!!.zone.customName.ifEmpty { "攻略" }, tagWidth, if (tagContainer.childCount == 3) 0 else 8F.dip2px() ) { diff --git a/app/src/main/java/com/gh/gamecenter/search/SearchGameResultAdapter.kt b/app/src/main/java/com/gh/gamecenter/search/SearchGameResultAdapter.kt index d71f384b0c..45b4127df1 100644 --- a/app/src/main/java/com/gh/gamecenter/search/SearchGameResultAdapter.kt +++ b/app/src/main/java/com/gh/gamecenter/search/SearchGameResultAdapter.kt @@ -501,7 +501,7 @@ class SearchGameResultAdapter( val zoneView = getContentTagView( R.drawable.ic_label_zone, "", - "攻略", + gameEntity.contentTag!!.zone.customName.ifEmpty { "攻略" }, tagWidth, if (tagContainer.childCount == 3) 0 else 8F.dip2px(), layoutInflater