6.5.4礼物冠名

This commit is contained in:
18401019693 2023-08-08 16:12:07 +08:00
parent af17c85366
commit 2162645da1
2 changed files with 16 additions and 4 deletions

View File

@ -17,7 +17,6 @@ import com.yunbao.common.bean.WishListModel;
import com.yunbao.common.bean.WishModel; import com.yunbao.common.bean.WishModel;
import com.yunbao.common.bean.WishModel2; import com.yunbao.common.bean.WishModel2;
import com.yunbao.common.event.LiveNewWishListCloseEvent; import com.yunbao.common.event.LiveNewWishListCloseEvent;
import com.yunbao.common.event.PopupViewDismissEvent;
import com.yunbao.common.http.base.HttpCallback; import com.yunbao.common.http.base.HttpCallback;
import com.yunbao.common.http.live.LiveNetManager; import com.yunbao.common.http.live.LiveNetManager;
import com.yunbao.common.utils.Bus; import com.yunbao.common.utils.Bus;
@ -106,6 +105,20 @@ public class LiveNewWishListFragment extends BaseFragment {
liveNewWishAdapter.addData(wishList, type); liveNewWishAdapter.addData(wishList, type);
} }
public int liveNewWishAdapterWishList() {
List<WishModel> wishList = liveNewWishAdapter.getWishList();
List<WishModel2> wishList2 = new ArrayList<>();
Gson gson = new Gson();
for (WishModel model : wishList) {
if (model != null) {
WishModel2 model2 = gson.fromJson(gson.toJson(model), WishModel2.class);
wishList2.add(model2);
}
}
return wishList2.size();
}
public void saveWish() { public void saveWish() {
List<WishModel> wishList = liveNewWishAdapter.getWishList(); List<WishModel> wishList = liveNewWishAdapter.getWishList();
List<WishModel2> wishList2 = new ArrayList<>(); List<WishModel2> wishList2 = new ArrayList<>();

View File

@ -98,7 +98,6 @@ public class LiveNewWishListPopup extends BottomPopupView {
private void saveWishDialog(boolean isDismiss) { private void saveWishDialog(boolean isDismiss) {
if (hintCustomPopup != null) return; if (hintCustomPopup != null) return;
hintCustomPopup = new HintCustomPopup( hintCustomPopup = new HintCustomPopup(
getContext(), getContext(),
getContext().getString(R.string.replacement_reset_confirmed_cancel3), getContext().getString(R.string.replacement_reset_confirmed_cancel3),