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 278f590..5b1457c 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 @@ -120,7 +120,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).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(bitmap).override(width, height))))).dontTransform().into(imageView); clearMemory(); }else{ Glide.with(mContext).pauseRequests(); @@ -132,7 +132,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).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(drawable).override(width, height))))).dontTransform().into(imageView); }else{ Glide.with(mContext).pauseRequests(); } @@ -143,7 +143,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).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(string).override(width, height))))).dontTransform().into(imageView); clearMemory(); }else{ Glide.with(mContext).pauseRequests(); @@ -155,7 +155,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).override(width, height))))).dontTransform().into(imageView); clearMemory(); }else{ Glide.with(mContext).pauseRequests(); @@ -167,7 +167,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).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(file).override(width, height))))).dontTransform().into(imageView); clearMemory(); }else{ Glide.with(mContext).pauseRequests(); @@ -179,7 +179,7 @@ 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).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(resourceId).override(width, height))))).dontTransform().into(imageView); clearMemory(); }else{ Glide.with(mContext).pauseRequests(); @@ -190,7 +190,7 @@ public Object loadDrawable(@Nullable Integer resourceId, ImageView imageView) { @Override public Object loadDrawable(@Nullable URL url, ImageView imageView) { if (isValidContextFromGlide(mContext)){ - glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(url).signature(new ObjectKey(url)).error(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(url).signature(new ObjectKey(url)).error(R.drawable.ic_baseline_cloud_download_24).override(width, height))))).dontTransform().into(imageView); clearMemory(); }else{ Glide.with(mContext).pauseRequests(); @@ -202,7 +202,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).override(width, height))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(model).override(width, height))))).dontTransform().into(imageView); clearMemory(); }else{ Glide.with(mContext).pauseRequests(); @@ -214,7 +214,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))))).into(imageView); + glideScaleItem(cornerRadious(useDecodeFormat(useDiskCacheStrategic(getGlide().getRequestManagerRetriever().get(mContext).load(model))))).dontTransform().into(imageView); clearMemory(); }else{ Glide.with(mContext).pauseRequests(); @@ -285,4 +285,5 @@ private ActivityManager.MemoryInfo getAvailableMemory(){ + }