心愿单设置加限制
This commit is contained in:
parent
32fa77be39
commit
06289b44d9
@ -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<String>() {
|
||||
@Override
|
||||
|
@ -326,7 +326,10 @@ public class LiveNewWishListPopup extends BottomPopupView {
|
||||
}
|
||||
List<WishModel2> 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<String>() {
|
||||
@Override
|
||||
|
@ -1118,4 +1118,5 @@
|
||||
<string name="traditional_chinese">繁體中文</string>
|
||||
<string name="add_gift2">添加禮物、貴族、守護心願</string>
|
||||
<string name="heat_add">热度加成</string>
|
||||
<string name="must_hint">最多只能设置10条</string>
|
||||
</resources>
|
||||
|
@ -1118,4 +1118,5 @@
|
||||
<string name="traditional_chinese">繁體中文</string>
|
||||
<string name="add_gift2">添加禮物、貴族、守護心願</string>
|
||||
<string name="heat_add">热度加成</string>
|
||||
<string name="must_hint">最多只能设置10条</string>
|
||||
</resources>
|
||||
|
@ -1118,4 +1118,5 @@
|
||||
<string name="traditional_chinese">繁體中文</string>
|
||||
<string name="add_gift2">添加禮物、貴族、守護心願</string>
|
||||
<string name="heat_add">热度加成</string>
|
||||
<string name="must_hint">最多只能设置10条</string>
|
||||
</resources>
|
||||
|
@ -282,7 +282,7 @@
|
||||
<string name="golden_beans">Beans</string>
|
||||
<string name="diamond">DO</string>
|
||||
<string name="coins">Coins</string>
|
||||
|
||||
<string name="must_hint">A maximum of 10 entries can be set</string>
|
||||
<string name="gxzb">Personalized Dress Up</string>
|
||||
<string name="live_camera">Flip</string>
|
||||
<string name="live_camera_s">Mirroring</string>
|
||||
|
Loading…
Reference in New Issue
Block a user