|
|
@@ -1,6 +1,9 @@
|
|
|
package kr.co.zumo.app.lifeplus.view.screen.contents;
|
|
|
|
|
|
+import android.util.Log;
|
|
|
+
|
|
|
import kr.co.zumo.app.R;
|
|
|
+import kr.co.zumo.app.lifeplus.bean.ContentsOverviewDeliveryBean;
|
|
|
import kr.co.zumo.app.lifeplus.helper.NavigationBar;
|
|
|
import kr.co.zumo.app.lifeplus.supervisor.ScreenID;
|
|
|
import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
@@ -29,13 +32,26 @@ public class ContentsOverviewPresenter extends ContentsBasePresenter<ContentsOve
|
|
|
super(model, view);
|
|
|
|
|
|
doubleChecker = new DoubleChecker(this::render);
|
|
|
+
|
|
|
+ ContentsOverviewDeliveryBean packaging = model.getDeliveryPackaging(ContentsOverviewDeliveryBean.class);
|
|
|
+
|
|
|
+ if (null != packaging) {
|
|
|
+ Log.w("APP# ContentsOverviewPresenter | ContentsOverviewPresenter", "|" + packaging.toPrettyJson());
|
|
|
+ model.setContentsBean(packaging.getContentsBean());
|
|
|
+ model.setContentsDetailBeans(packaging.getContentsDetailListBean().getItemDetailList());
|
|
|
+
|
|
|
+ model.clearDeliveryPackaging();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
protected void startInternalOnce() {
|
|
|
- if (null != this.model.getContentsBean()) {
|
|
|
+ if (null == this.model.getContentsDetailBeans()) {
|
|
|
this.model.loadDetail();
|
|
|
}
|
|
|
+ else {
|
|
|
+ doubleChecker.checkSecond();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void render() {
|