Skip to content

Commit

Permalink
add en name
Browse files Browse the repository at this point in the history
  • Loading branch information
neilyhe committed Sep 25, 2024
1 parent 8a4e6c1 commit 97437a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "",
Expand Down

0 comments on commit 97437a9

Please sign in to comment.