mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
parent
16f277761e
commit
9d3b764fec
@ -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<Bitmap>() {
|
||||
@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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user