|
|
@@ -9,6 +9,7 @@ import java.util.Calendar;
|
|
|
|
|
|
import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.application.App;
|
|
|
+import kr.co.zumo.app.lifeplus.bean.MemberPushAgreeResultBean;
|
|
|
import kr.co.zumo.app.lifeplus.supervisor.ScreenID;
|
|
|
import kr.co.zumo.app.lifeplus.tool.IShareListener;
|
|
|
import kr.co.zumo.app.lifeplus.tool.Share;
|
|
|
@@ -87,6 +88,13 @@ public class SettingPresenter extends Presenter<SettingModel, ISettingView> {
|
|
|
|
|
|
@Override
|
|
|
protected void startInternal() {
|
|
|
+ MemberPushAgreeResultBean bean = model.getResultPackaging(MemberPushAgreeResultBean.class);
|
|
|
+ if (null != bean) {
|
|
|
+ model.clearResultPackaging();
|
|
|
+ // model(superModel) 에는 반영됐으므로 ui만 반영하면 됨
|
|
|
+ view.setPushContentsAndService(bean.isPushEnabled());
|
|
|
+ view.notifyUpdate();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -311,12 +319,12 @@ public class SettingPresenter extends Presenter<SettingModel, ISettingView> {
|
|
|
// push / 위치 설정
|
|
|
if (index == SettingViewHolder.SWITCH_PUSH) {
|
|
|
// 푸쉬
|
|
|
- view.setPushEnabled(!bool);
|
|
|
+ view.setPushContentsAndService(!bool);
|
|
|
view.notifyUpdate();
|
|
|
}
|
|
|
else if (index == SettingViewHolder.SWITCH_MARKETING) {
|
|
|
// 마케팅
|
|
|
- view.setPushMarketingEnabled(!bool);
|
|
|
+ view.setPushEventEnabled(!bool);
|
|
|
view.notifyUpdate();
|
|
|
}
|
|
|
else if (index == SettingViewHolder.SWITCH_LOCATION) {
|
|
|
@@ -350,8 +358,8 @@ public class SettingPresenter extends Presenter<SettingModel, ISettingView> {
|
|
|
|
|
|
//SettingMemberBean memberBean = model.getSettingMemberBean();
|
|
|
|
|
|
- view.setPushEnabled(model.isPushContentsAndService());
|
|
|
- view.setPushMarketingEnabled(model.isPushEventEnabled());
|
|
|
+ view.setPushContentsAndService(model.isPushContentsAndService());
|
|
|
+ view.setPushEventEnabled(model.isPushEventEnabled());
|
|
|
view.setLocationServiceEnabled(model.isLocationServiceEnabled());
|
|
|
|
|
|
if (model.isActiveMember()) {
|