6.5.4礼物冠名
This commit is contained in:
parent
af17c85366
commit
2162645da1
@ -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;
|
||||||
@ -66,7 +65,7 @@ public class LiveNewWishListFragment extends BaseFragment {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(tvDone, new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(tvDone, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
saveWish( );
|
saveWish();
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -106,7 +105,21 @@ public class LiveNewWishListFragment extends BaseFragment {
|
|||||||
liveNewWishAdapter.addData(wishList, type);
|
liveNewWishAdapter.addData(wishList, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void saveWish( ) {
|
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() {
|
||||||
List<WishModel> wishList = liveNewWishAdapter.getWishList();
|
List<WishModel> wishList = liveNewWishAdapter.getWishList();
|
||||||
List<WishModel2> wishList2 = new ArrayList<>();
|
List<WishModel2> wishList2 = new ArrayList<>();
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
|
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user