diff --git a/app/pictogramslibrary/src/main/java/com/stonefacesoft/pictogramslibrary/utils/GlideAttatcher.java b/app/pictogramslibrary/src/main/java/com/stonefacesoft/pictogramslibrary/utils/GlideAttatcher.java index f655a04..e8410ba 100644 --- a/app/pictogramslibrary/src/main/java/com/stonefacesoft/pictogramslibrary/utils/GlideAttatcher.java +++ b/app/pictogramslibrary/src/main/java/com/stonefacesoft/pictogramslibrary/utils/GlideAttatcher.java @@ -162,7 +162,7 @@ public GlideAttatcher UseCornerRadius(boolean useCornerRadious) { @Override public Object loadDrawable(@Nullable Bitmap bitmap, ImageView imageView) { if (isValidContextFromGlide(mContext)) - glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(bitmap).fallback(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(bitmap).fallback(R.drawable.ic_baseline_cloud_download_24).error(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); return this; } @@ -170,7 +170,7 @@ public Object loadDrawable(@Nullable Bitmap bitmap, ImageView imageView) { @Override public Object loadDrawable(@Nullable Drawable drawable, ImageView imageView) { if (isValidContextFromGlide(mContext)) - glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(drawable).fallback(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(drawable).fallback(R.drawable.ic_baseline_cloud_download_24).error(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); return this; } @@ -178,7 +178,7 @@ public Object loadDrawable(@Nullable Drawable drawable, ImageView imageView) { @Override public Object loadDrawable(@Nullable String string, ImageView imageView) { if (isValidContextFromGlide(mContext)) - glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(string).fallback(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(string).fallback(R.drawable.ic_baseline_cloud_download_24).error(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); return this; } @@ -186,7 +186,7 @@ public Object loadDrawable(@Nullable String string, ImageView imageView) { @Override public Object loadDrawable(@Nullable Uri uri, ImageView imageView) { if (isValidContextFromGlide(mContext)) - glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(uri).fallback(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(uri).fallback(R.drawable.ic_baseline_cloud_download_24).error(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); return this; } @@ -194,7 +194,7 @@ public Object loadDrawable(@Nullable Uri uri, ImageView imageView) { @Override public Object loadDrawable(@Nullable File file, ImageView imageView) { if (isValidContextFromGlide(mContext)) - glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(file).fallback(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(file).fallback(R.drawable.ic_baseline_cloud_download_24).error(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); return this; } @@ -202,14 +202,14 @@ public Object loadDrawable(@Nullable File file, ImageView imageView) { @Override public Object loadDrawable(@Nullable Integer resourceId, ImageView imageView) { if (isValidContextFromGlide(mContext)) - glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(resourceId).fallback(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(resourceId).fallback(R.drawable.ic_baseline_cloud_download_24).error(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); return this; } @Override public Object loadDrawable(@Nullable URL url, ImageView imageView) { if (isValidContextFromGlide(mContext)) - glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(url).fallback(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(url).fallback(R.drawable.ic_baseline_cloud_download_24).error(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); return this; } @@ -217,7 +217,7 @@ public Object loadDrawable(@Nullable URL url, ImageView imageView) { @Override public Object loadDrawable(@Nullable byte[] model, ImageView imageView) { if (isValidContextFromGlide(mContext)) - glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(model).fallback(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(model).fallback(R.drawable.ic_baseline_cloud_download_24).error(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); return this; } @@ -225,7 +225,7 @@ public Object loadDrawable(@Nullable byte[] model, ImageView imageView) { @Override public Object loadDrawable(@Nullable Object model, ImageView imageView) { if (isValidContextFromGlide(mContext)) - glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(model).fallback(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(model).fallback(R.drawable.ic_baseline_cloud_download_24).error(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); return this; }