diff --git a/app/src/main/java/com/tencent/iot/explorer/link/kitlink/fragment/SecondDeviceCategoryFragment.kt b/app/src/main/java/com/tencent/iot/explorer/link/kitlink/fragment/SecondDeviceCategoryFragment.kt index 4faa3cc08..6168a603f 100644 --- a/app/src/main/java/com/tencent/iot/explorer/link/kitlink/fragment/SecondDeviceCategoryFragment.kt +++ b/app/src/main/java/com/tencent/iot/explorer/link/kitlink/fragment/SecondDeviceCategoryFragment.kt @@ -444,7 +444,9 @@ class SecondDeviceCategoryFragment() : BaseFragment(), MyCallback { itemView.setOnClickListener { itemClickListener.onItemClick(layoutPosition, entity) } - text?.text = entity.ProductName + val productName = + if (Utils.getLang() == "zh-CN") entity.ProductName else entity.ProductEnName + text?.text = productName val url = entity.ProductUrl if (TextUtils.isEmpty(url)) { Picasso.get().load(R.mipmap.device_placeholder) diff --git a/app/src/main/java/com/tencent/iot/explorer/link/kitlink/response/DeviceCategoryResponse.kt b/app/src/main/java/com/tencent/iot/explorer/link/kitlink/response/DeviceCategoryResponse.kt index f3b52f3ba..9d732765d 100644 --- a/app/src/main/java/com/tencent/iot/explorer/link/kitlink/response/DeviceCategoryResponse.kt +++ b/app/src/main/java/com/tencent/iot/explorer/link/kitlink/response/DeviceCategoryResponse.kt @@ -37,6 +37,7 @@ data class CategoryDeviceInfo( val IsRelatedProduct: Boolean = false, val ProductId: String = "", val ProductName: String = "", + val ProductEnName: String = "", val ProductUrl: String = "", val IsRecommend: Int = 0, val Type: String = "",