From 06289b44d93953fba2ce5066dc872e0ef18504e6 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Thu, 13 Apr 2023 13:08:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E6=84=BF=E5=8D=95=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=8A=A0=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/common/fragment/LiveNewWishListFragment.java | 4 ++++ .../java/com/yunbao/common/views/LiveNewWishListPopup.java | 5 ++++- 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 | 2 +- 6 files changed, 12 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/fragment/LiveNewWishListFragment.java b/common/src/main/java/com/yunbao/common/fragment/LiveNewWishListFragment.java index 20ee6ddd7..c6dfaf62d 100644 --- a/common/src/main/java/com/yunbao/common/fragment/LiveNewWishListFragment.java +++ b/common/src/main/java/com/yunbao/common/fragment/LiveNewWishListFragment.java @@ -119,6 +119,10 @@ public class LiveNewWishListFragment extends BaseFragment { if (wishList2.size() == 0) { Bus.get().post(new PopupViewDismissEvent()); } else { + if (wishList2.size()>10){ + ToastUtil.show(R.string.must_hint); + return; + } LiveNetManager.get(getContext()). setWishlistV2(type, gson.toJson(wishList2), new HttpCallback() { @Override diff --git a/common/src/main/java/com/yunbao/common/views/LiveNewWishListPopup.java b/common/src/main/java/com/yunbao/common/views/LiveNewWishListPopup.java index c532a3581..b6d8a88c6 100644 --- a/common/src/main/java/com/yunbao/common/views/LiveNewWishListPopup.java +++ b/common/src/main/java/com/yunbao/common/views/LiveNewWishListPopup.java @@ -326,7 +326,10 @@ public class LiveNewWishListPopup extends BottomPopupView { } List wishList2 = new ArrayList<>(); Gson gson = new Gson(); - + if (wishList2.size()>10){ + ToastUtil.show(R.string.must_hint); + return; + } LiveNetManager.get(getContext()). setWishlistV2(type, gson.toJson(wishList2), new HttpCallback() { @Override diff --git a/common/src/main/res/values-zh-rHK/strings.xml b/common/src/main/res/values-zh-rHK/strings.xml index 6ee9349ce..956b12d6c 100644 --- a/common/src/main/res/values-zh-rHK/strings.xml +++ b/common/src/main/res/values-zh-rHK/strings.xml @@ -1118,4 +1118,5 @@ 繁體中文 添加禮物、貴族、守護心願 热度加成 + 最多只能设置10条 diff --git a/common/src/main/res/values-zh-rTW/strings.xml b/common/src/main/res/values-zh-rTW/strings.xml index 6ee9349ce..956b12d6c 100644 --- a/common/src/main/res/values-zh-rTW/strings.xml +++ b/common/src/main/res/values-zh-rTW/strings.xml @@ -1118,4 +1118,5 @@ 繁體中文 添加禮物、貴族、守護心願 热度加成 + 最多只能设置10条 diff --git a/common/src/main/res/values-zh/strings.xml b/common/src/main/res/values-zh/strings.xml index 6ee9349ce..956b12d6c 100644 --- a/common/src/main/res/values-zh/strings.xml +++ b/common/src/main/res/values-zh/strings.xml @@ -1118,4 +1118,5 @@ 繁體中文 添加禮物、貴族、守護心願 热度加成 + 最多只能设置10条 diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml index 842d4f078..2af8b7a70 100644 --- a/common/src/main/res/values/strings.xml +++ b/common/src/main/res/values/strings.xml @@ -282,7 +282,7 @@ Beans DO Coins - + A maximum of 10 entries can be set Personalized Dress Up Flip Mirroring