Browse Source

[알림][New] 푸시 이벤트 당첨 멘트 수정

hyodong.min 6 years ago
parent
commit
e161397951

+ 3 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/notification/NotiModel.java

@@ -12,6 +12,7 @@ import java.util.Comparator;
 import java.util.List;
 
 import io.reactivex.disposables.Disposable;
+import kr.co.zumo.app.R;
 import kr.co.zumo.app.lifeplus.bean.PushBean;
 import kr.co.zumo.app.lifeplus.bean.api.NoticeBean;
 import kr.co.zumo.app.lifeplus.bean.api.NoticeResultBean;
@@ -24,6 +25,7 @@ import kr.co.zumo.app.lifeplus.model.module.APINoticeModule;
 import kr.co.zumo.app.lifeplus.push.PushMessageBroker;
 import kr.co.zumo.app.lifeplus.push.PushMessageManager;
 import kr.co.zumo.app.lifeplus.util.Formatter;
+import kr.co.zumo.app.lifeplus.util.ResourceUtil;
 import kr.co.zumo.app.lifeplus.view.Event;
 
 /**
@@ -188,7 +190,7 @@ public class NotiModel extends Model implements PushMessageBroker.IPushMessageLi
   private NoticeBean pushToNotice(PushBean bean, int index) {
     NoticeBean noticeBean = new NoticeBean();
     noticeBean.setCategory(NoticeBean.CATEGORY_NEWS);
-    noticeBean.setContents(bean.getContents());
+    noticeBean.setContents(ResourceUtil.getString(R.string.event_winner_noti, bean.getTitle()));
     noticeBean.setOpeningDate(Formatter.format(bean.getDateTime(), PushBean.DATE_FORMAT, NoticeBean.DATE_FORMAT));
     noticeBean.setEventId(bean.getItemNo());
     noticeBean.setNoticeNo(String.valueOf(index));

+ 1 - 0
app/src/main/res/values/strings.xml

@@ -552,6 +552,7 @@
   <string name="event_winner_list_title">당첨자 리스트(휴대폰 뒷자리 순 정렬)</string>
   <string name="email_address_kor">이메일 주소</string>
   <string name="phone_number_back">연락처 뒷자리 </string>
+  <string name="event_winner_noti">응모하신 [%s] 이벤트에 당첨되었습니다.</string>
 
 
   <string name="service_check_title">서비스 점검 안내</string>