|
|
@@ -1,6 +1,7 @@
|
|
|
package kr.co.zumo.app.lifeplus.view.screen.category;
|
|
|
|
|
|
import android.support.annotation.CallSuper;
|
|
|
+import android.support.annotation.StringRes;
|
|
|
import android.support.v7.app.ActionBar;
|
|
|
import android.util.Log;
|
|
|
|
|
|
@@ -12,7 +13,6 @@ import kr.co.zumo.app.lifeplus.bean.api.EventDetailBean;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.FlagContentsBean;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.LifeplusContentsBean;
|
|
|
import kr.co.zumo.app.lifeplus.helper.ActionBarHelper;
|
|
|
-import kr.co.zumo.app.lifeplus.helper.FirebaseAnalyticsHelper;
|
|
|
import kr.co.zumo.app.lifeplus.supervisor.ScreenID;
|
|
|
import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
import kr.co.zumo.app.lifeplus.view.DoubleChecker;
|
|
|
@@ -150,7 +150,7 @@ public abstract class CategoryMainPresenter<M extends CategoryMainModel, V exten
|
|
|
flagContentsBean = model.getSelectedRecommendBean();
|
|
|
|
|
|
logContents(
|
|
|
- FirebaseAnalyticsHelper.Param.TYPE_RECOMMEND,
|
|
|
+ R.string.fa_type_recommend,
|
|
|
event.getIndex(),
|
|
|
flagContentsBean.getTitleWithTrim()
|
|
|
);
|
|
|
@@ -172,10 +172,10 @@ public abstract class CategoryMainPresenter<M extends CategoryMainModel, V exten
|
|
|
|
|
|
break;
|
|
|
case Event.CONTENTS:
|
|
|
- linkContents(FirebaseAnalyticsHelper.Param.TYPE_LIST, event.getIndex());
|
|
|
+ linkContents(R.string.fa_type_list, event.getIndex());
|
|
|
break;
|
|
|
case Event.BANNER:
|
|
|
- linkContents(FirebaseAnalyticsHelper.Param.TYPE_BANNER, event.getIndex());
|
|
|
+ linkContents(R.string.fa_type_banner, event.getIndex());
|
|
|
break;
|
|
|
default:
|
|
|
onCategoryEvent(event);
|
|
|
@@ -183,7 +183,7 @@ public abstract class CategoryMainPresenter<M extends CategoryMainModel, V exten
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void linkContents(String type, int index) {
|
|
|
+ private void linkContents(@StringRes int type, int index) {
|
|
|
FlagContentsBean flagContentsBean = model.getContents().get(index);
|
|
|
if (getScreenId(flagContentsBean) == ScreenID.EVENT_DETAIL) {
|
|
|
gotoEvent(flagContentsBean);
|
|
|
@@ -197,10 +197,10 @@ public abstract class CategoryMainPresenter<M extends CategoryMainModel, V exten
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void logContents(String type, int index, String title) {
|
|
|
+ private void logContents(@StringRes int type, int index, String title) {
|
|
|
firebaseAnalyticsHelper.logContents(
|
|
|
R.string.fa_screen_category,
|
|
|
- type,
|
|
|
+ ResourceUtil.getString(type),
|
|
|
model.getCategoryIndex() + 1,
|
|
|
getAnalyticsScreenName(),
|
|
|
index + 1,
|