Panagiotis Triantafyllou

unified coupons image fix

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