chat21 / chat21-android-sdk

Android Chat SDK built on Firebase
http://www.chat21.org
MIT License
233 stars 98 forks source link

Placeholder issue with Glide library #18

Open karthiciist opened 5 years ago

karthiciist commented 5 years ago

This part in MessageListActivity.java :

private void setPicture(String pictureUrl, @DrawableRes int placeholder) { Glide.with(getApplicationContext()) .load(StringUtils.isValid(pictureUrl) ? pictureUrl : "") .placeholder(placeholder) .bitmapTransform(new CropCircleTransformation(getApplicationContext())) .into(mPictureView); }

is using placeholder(placeholder) which is available in glide library 3.7.0. This forces to use the older version of glide library.

Newer version of glide dont have placeholder() function.

I am using chat21 with algolia. Algolia is using latest version of glide. This is causing an issue for me.

Please suggest a fix.

NegiArvind commented 5 years ago

I am also facing the same problem.