Panagiotis Triantafyllou

unified coupons image fix

......@@ -139,13 +139,13 @@ public class ActiveCouponAdapter extends RecyclerView.Adapter<ActiveCouponAdapte
holder.clCustomLayout.setBackgroundResource(R.drawable.ic_coupon_background_new2);
}
if (!TextUtils.isEmpty(couponItem.getImage())) {
if (merchant != null && !TextUtils.isEmpty(merchant.getImgPreview())) {
Glide.with(mContext)
// .setDefaultRequestOptions(
// RequestOptions
// .placeholderOf(R.drawable.ic_default_contact_photo)
// .error(R.drawable.ic_default_contact_photo))
.load(couponItem.getImage())
.load(merchant.getImgPreview())
.diskCacheStrategy(DiskCacheStrategy.DATA)
.into(holder.ivCouponLogo);
} else {
......