Closed gonojuarez closed 1 year ago
I replaced the following code
attatcher.UseCornerRadius(true).loadDrawable(this.getResources().getDrawable(this.getContext().getResources().getIdentifier(pictogram.getPictogram(), "drawable", this.getPackageName())), getImageView(position));
with :
Drawable drawable = Json.getInstance().getIcono(pictogram.getObject());
if(drawable != null)
attatcher.UseCornerRadius(true).loadDrawable(drawable, getImageView(position));
Contact Details
gonojuarez17@gmail.com
What happened?
The App crashed because doesn't find an Image resource.
GlideAttatcher attatcher = new GlideAttatcher(this); attatcher.UseCornerRadius(true).loadDrawable(this.getResources().getDrawable(this.getContext().getResources().getIdentifier(pictogram.getPictogram(), "drawable", this.getPackageName())), getImageView(position));
Version
6.7.x (Production)
Where are you seeing the problem on?
Android
Relevant log output
Code of Conduct