|
|
@@ -9,6 +9,7 @@ import android.util.Log;
|
|
|
|
|
|
import kr.co.zumo.app.lifeplus.activity.CategoryActivity;
|
|
|
import kr.co.zumo.app.lifeplus.activity.ContentsActivity;
|
|
|
+import kr.co.zumo.app.lifeplus.activity.ContentsNativeActivity;
|
|
|
import kr.co.zumo.app.lifeplus.activity.ContentsOverviewActivity;
|
|
|
import kr.co.zumo.app.lifeplus.activity.MenuActivity;
|
|
|
import kr.co.zumo.app.lifeplus.bean.CategoryDeliveryBean;
|
|
|
@@ -57,15 +58,13 @@ public class ActivityScreen extends Screen {
|
|
|
case ScreenID.CONTENTS:
|
|
|
intent = new Intent(context, ContentsActivity.class);
|
|
|
|
|
|
- deliveryHelper = helper.getDeliveryHelper();
|
|
|
- contentsDeliveryBean = deliveryHelper.getPackaging(ContentsDeliveryBean.class);
|
|
|
-
|
|
|
- if (null != contentsDeliveryBean.getContentsBean()) {
|
|
|
- Log.w("APP# ActivityScreen | change", "|" + contentsDeliveryBean.getContentsBean().toPrettyJson());
|
|
|
+ setContentsPackage();
|
|
|
|
|
|
- ActivityDeliveryHelper.getInstance().setPackaging(contentsDeliveryBean);
|
|
|
- deliveryHelper.clearPackaging();
|
|
|
- }
|
|
|
+ break;
|
|
|
+ case ScreenID.CONTENTS_NATIVE:
|
|
|
+ intent = new Intent(context, ContentsNativeActivity.class);
|
|
|
+
|
|
|
+ setContentsPackage();
|
|
|
|
|
|
break;
|
|
|
case ScreenID.OVER_VIEW:
|
|
|
@@ -91,4 +90,20 @@ public class ActivityScreen extends Screen {
|
|
|
context.startActivity(intent);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ private void setContentsPackage() {
|
|
|
+
|
|
|
+ DeliveryHelper deliveryHelper;
|
|
|
+ ContentsDeliveryBean contentsDeliveryBean;
|
|
|
+
|
|
|
+ deliveryHelper = helper.getDeliveryHelper();
|
|
|
+ contentsDeliveryBean = deliveryHelper.getPackaging(ContentsDeliveryBean.class);
|
|
|
+
|
|
|
+ if (null != contentsDeliveryBean.getContentsBean()) {
|
|
|
+ Log.w("APP# ActivityScreen | change", "|" + contentsDeliveryBean.getContentsBean().toPrettyJson());
|
|
|
+
|
|
|
+ ActivityDeliveryHelper.getInstance().setPackaging(contentsDeliveryBean);
|
|
|
+ deliveryHelper.clearPackaging();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|