|
|
@@ -16,6 +16,7 @@ import com.bumptech.glide.request.RequestOptions;
|
|
|
import com.bumptech.glide.request.target.Target;
|
|
|
|
|
|
import kr.co.zumo.app.R;
|
|
|
+import kr.co.zumo.app.lifeplus.bean.api.ContentsItemBean;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.LifeplusContentsBean;
|
|
|
import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
@@ -53,6 +54,14 @@ public class RecommendContentsViewHolder<T extends LifeplusContentsBean> extends
|
|
|
textViewSubtitle.setText(bean.getSubTitleWithTrim());
|
|
|
textViewTitle.setText(bean.getTwoLineTitle());
|
|
|
|
|
|
+ String url;
|
|
|
+ if (bean instanceof ContentsItemBean) {
|
|
|
+ url = ((ContentsItemBean) bean).getOverviewImageUrl();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ url = bean.getImageUrl();
|
|
|
+ }
|
|
|
+
|
|
|
Glide.with(imageViewBackground)
|
|
|
.asBitmap()
|
|
|
// .apply(new RequestOptions().diskCacheStrategy(DiskCacheStrategy.NONE))
|
|
|
@@ -70,7 +79,7 @@ public class RecommendContentsViewHolder<T extends LifeplusContentsBean> extends
|
|
|
return false;
|
|
|
}
|
|
|
})
|
|
|
- .load(bean.getImageUrl()).into(imageViewBackground);
|
|
|
+ .load(url).into(imageViewBackground);
|
|
|
|
|
|
imageViewBackground.setOnClickListener(v -> {
|
|
|
listener.onEvent(new Event.Builder(Event.WITH_SHOWN).index(getAdapterPosition()).build());
|