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