From 457e47e8855436ba9def16a8b2d7fff4b4cf2ecf Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 21 Mar 2024 15:09:11 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=B9=B4=E9=BD=A1=E6=A8=99=E7=B1=A4+?= =?UTF-8?q?=E6=AD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/common/dialog/MessageSayHiNotifyDialog.java | 7 +++++-- .../yunbao/main/activity/PDLiveConversationActivity.java | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/dialog/MessageSayHiNotifyDialog.java b/common/src/main/java/com/yunbao/common/dialog/MessageSayHiNotifyDialog.java index ca09f03..51bf113 100644 --- a/common/src/main/java/com/yunbao/common/dialog/MessageSayHiNotifyDialog.java +++ b/common/src/main/java/com/yunbao/common/dialog/MessageSayHiNotifyDialog.java @@ -98,9 +98,12 @@ public class MessageSayHiNotifyDialog extends AbsDialogCenterPopupWindow { ImgLoader.display(mContext, userInfoBean.getUser().getAvatar(), avatar); anchorName.setText(userInfoBean.getUser().getUserNicename()); ((TextView) findViewById(R.id.description)).setText(userInfoBean.getUser().getSignature()); - ViewUtils.findViewById(findViewById(R.id.age), R.id.tag, TextView.class).setText(String.format("%s%s", + ViewUtils.findViewById(findViewById(R.id.age), R.id.tag, TextView.class).setText(String.format("%s%s%s", WordUtil.getNewString(R.string.dialog_message_say_hi_age) - , userInfoBean.getInfo().getAge())); + , userInfoBean.getInfo().getAge() + ,WordUtil.isNewZh()?"歲":"Age" + ) + ); showTag(); } diff --git a/main/src/main/java/com/yunbao/main/activity/PDLiveConversationActivity.java b/main/src/main/java/com/yunbao/main/activity/PDLiveConversationActivity.java index 72b2ab8..fb27a69 100644 --- a/main/src/main/java/com/yunbao/main/activity/PDLiveConversationActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/PDLiveConversationActivity.java @@ -320,7 +320,7 @@ public class PDLiveConversationActivity extends AbsActivity implements View.OnCl private void showTag() { List tags = new ArrayList<>(); - tags.add(userInfoBean.getInfo().getAge()); + tags.add(userInfoBean.getInfo().getAge()+(WordUtil.isNewZh()?"歲":"Age")); if (!StringUtil.isEmpty(userInfoBean.getInfo().getCareer())) { tags.add(userInfoBean.getInfo().getCareer()); }