Skip to content

Commit

Permalink
version 0.1.9.6
Browse files Browse the repository at this point in the history
prerelease
  • Loading branch information
gonojuarez committed Sep 27, 2021
1 parent 5c3850c commit 2395ca2
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
}
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down Expand Up @@ -285,4 +285,5 @@ private ActivityManager.MemoryInfo getAvailableMemory(){




}

0 comments on commit 2395ca2

Please sign in to comment.