From c1aa8188ce19516352334909e58dae672ad0de2d Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 1 Jun 2023 14:58:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=BA=E5=99=A8=E4=BA=BA?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=89=93=E6=8B=9B=E5=91=BC=E6=9D=A1=E6=95=B0?= =?UTF-8?q?=E8=B6=85=E8=BF=8720=E6=9D=A1=E9=97=AE=E9=A2=98=20#74?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/common/views/LiveRobotSayHelloCustomPopup.java | 4 ++++ common/src/main/res/values-en-rUS/string.xml | 1 + common/src/main/res/values-zh-rHK/strings.xml | 1 + common/src/main/res/values-zh-rTW/strings.xml | 1 + common/src/main/res/values-zh/strings.xml | 1 + common/src/main/res/values/strings.xml | 1 + 6 files changed, 9 insertions(+) diff --git a/common/src/main/java/com/yunbao/common/views/LiveRobotSayHelloCustomPopup.java b/common/src/main/java/com/yunbao/common/views/LiveRobotSayHelloCustomPopup.java index a04d91c13..eeef5348b 100644 --- a/common/src/main/java/com/yunbao/common/views/LiveRobotSayHelloCustomPopup.java +++ b/common/src/main/java/com/yunbao/common/views/LiveRobotSayHelloCustomPopup.java @@ -81,6 +81,10 @@ public class LiveRobotSayHelloCustomPopup extends BottomPopupView { findViewById(R.id.robot_add_content).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { + if(robotMessageAdapter.getItemCount()>=20){ + ToastUtil.show(getContext().getString(R.string.rebot_config_auto_say_max)); + return; + } new XPopup.Builder(getContext()) .asCustom(new InputCustomPopup(getContext(), R.string.automatic_greeting_setting).setListener(new InputCustomPopup.InputCustomListener() { @Override diff --git a/common/src/main/res/values-en-rUS/string.xml b/common/src/main/res/values-en-rUS/string.xml index 73700713f..94ecd406a 100644 --- a/common/src/main/res/values-en-rUS/string.xml +++ b/common/src/main/res/values-en-rUS/string.xml @@ -1192,4 +1192,5 @@ Limited ride And limited avatar frame Participate in %s is extracted from %s %S sent to %s + Over the maximum value diff --git a/common/src/main/res/values-zh-rHK/strings.xml b/common/src/main/res/values-zh-rHK/strings.xml index b424e7c69..2250a1b9c 100644 --- a/common/src/main/res/values-zh-rHK/strings.xml +++ b/common/src/main/res/values-zh-rHK/strings.xml @@ -1187,4 +1187,5 @@ 參與 %s在%s中抽取到了 %S送给了%s + 超过最大值 diff --git a/common/src/main/res/values-zh-rTW/strings.xml b/common/src/main/res/values-zh-rTW/strings.xml index 1bf2c4121..c928ed64d 100644 --- a/common/src/main/res/values-zh-rTW/strings.xml +++ b/common/src/main/res/values-zh-rTW/strings.xml @@ -1186,4 +1186,5 @@ 參與 %s在%s中抽取到了 %S送给了%s + 超过最大值 diff --git a/common/src/main/res/values-zh/strings.xml b/common/src/main/res/values-zh/strings.xml index 9774abb9c..d6b8c690f 100644 --- a/common/src/main/res/values-zh/strings.xml +++ b/common/src/main/res/values-zh/strings.xml @@ -1187,4 +1187,5 @@ 參與 %s在%s中抽取到了 %S送给了%s + 超过最大值 diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml index db6089d82..3f0fb1775 100644 --- a/common/src/main/res/values/strings.xml +++ b/common/src/main/res/values/strings.xml @@ -1193,4 +1193,5 @@ Limited ride And limited avatar frame %s is extracted from %s %S sent to %s Create Vote Error + Over the maximum value