6.5.4礼物冠名
This commit is contained in:
parent
20c00e2896
commit
af17c85366
@ -132,12 +132,10 @@ public class LiveNewWishListFragment extends BaseFragment {
|
||||
break;
|
||||
}
|
||||
if (wishList2.size() == 0) {
|
||||
Bus.get().post(new PopupViewDismissEvent());
|
||||
LiveNetManager.get(getContext()).
|
||||
setWishlistV2(type, gson.toJson(wishList2), new HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
Bus.get().post(new PopupViewDismissEvent());
|
||||
ToastUtil.show("修改成功");
|
||||
}
|
||||
|
||||
@ -151,38 +149,17 @@ public class LiveNewWishListFragment extends BaseFragment {
|
||||
.asCustom(new HintCustomPopup(getContext(),
|
||||
getContext().getString(R.string.dialog_tip),
|
||||
getContext().getString(R.string.sett_rigger))
|
||||
.setLiveOpenOk(getContext().getString(R.string.cancel_ca))
|
||||
.setLiveOpenCancel(getContext().getString(R.string.settings_ser))
|
||||
.setLiveOpenOk(getContext().getString(R.string.settings_ser))
|
||||
.setLiveOpenCancel(getContext().getString(R.string.cancel_ca))
|
||||
.setCallBack(new HintCustomPopup.HintCustomCallBack() {
|
||||
@Override
|
||||
public void onSure() {
|
||||
|
||||
if (wishList2.size() > 10) {
|
||||
ToastUtil.show(R.string.must_hint);
|
||||
return;
|
||||
}
|
||||
LiveNetManager.get(getContext()).
|
||||
setWishlistV2(type, gson.toJson(wishList2), new HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
Bus.get().post(new PopupViewDismissEvent());
|
||||
ToastUtil.show("修改成功");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show(R.string.net_error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCancel() {
|
||||
|
||||
}
|
||||
})).show();
|
||||
} else {
|
||||
Bus.get().post(new PopupViewDismissEvent());
|
||||
if (wishList2.size() > 10) {
|
||||
ToastUtil.show(R.string.must_hint);
|
||||
return;
|
||||
@ -191,7 +168,25 @@ public class LiveNewWishListFragment extends BaseFragment {
|
||||
setWishlistV2(type, gson.toJson(wishList2), new HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
Bus.get().post(new PopupViewDismissEvent());
|
||||
ToastUtil.show("修改成功");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show(R.string.net_error);
|
||||
}
|
||||
});
|
||||
}
|
||||
})).show();
|
||||
} else {
|
||||
if (wishList2.size() > 10) {
|
||||
ToastUtil.show(R.string.must_hint);
|
||||
return;
|
||||
}
|
||||
LiveNetManager.get(getContext()).
|
||||
setWishlistV2(type, gson.toJson(wishList2), new HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
ToastUtil.show("修改成功");
|
||||
}
|
||||
|
||||
|
@ -118,9 +118,7 @@ public class LiveNewWishListPopup extends BottomPopupView {
|
||||
} else if (seasonalWish) {
|
||||
seasonalWishFragment.saveWish( );
|
||||
}
|
||||
if (isDismiss) {
|
||||
dismiss();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user