From 9d3b764fec52280305ddb6d4d678aafc8efe73b0 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 28 Oct 2016 12:30:50 -0700 Subject: [PATCH] Missed some glide caching Fixes #5817 // FREEBIE --- src/org/thoughtcrime/securesms/GroupCreateActivity.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/GroupCreateActivity.java b/src/org/thoughtcrime/securesms/GroupCreateActivity.java index 28f683b1fa..efde6bf7f5 100644 --- a/src/org/thoughtcrime/securesms/GroupCreateActivity.java +++ b/src/org/thoughtcrime/securesms/GroupCreateActivity.java @@ -39,6 +39,7 @@ import android.widget.TextView; import android.widget.Toast; import com.bumptech.glide.Glide; +import com.bumptech.glide.load.engine.DiskCacheStrategy; import com.bumptech.glide.request.animation.GlideAnimation; import com.bumptech.glide.request.target.SimpleTarget; import com.soundcloud.android.crop.Crop; @@ -319,7 +320,9 @@ public class GroupCreateActivity extends PassphraseRequiredActionBarActivity new Crop(data.getData()).output(outputFile).asSquare().start(this); break; case Crop.REQUEST_CROP: - Glide.with(this).load(Crop.getOutput(data)).asBitmap().skipMemoryCache(true) + Glide.with(this).load(Crop.getOutput(data)).asBitmap() + .skipMemoryCache(true) + .diskCacheStrategy(DiskCacheStrategy.NONE) .centerCrop().override(AVATAR_SIZE, AVATAR_SIZE) .into(new SimpleTarget() { @Override @@ -591,6 +594,7 @@ public class GroupCreateActivity extends PassphraseRequiredActionBarActivity Glide.with(this) .load(model) .skipMemoryCache(true) + .diskCacheStrategy(DiskCacheStrategy.NONE) .transform(new RoundedCorners(this, avatar.getWidth() / 2)) .into(avatar); }