mirror of https://github.com/M66B/FairEmail.git
Refactoring
This commit is contained in:
parent
b29835a98b
commit
7b71c20128
|
@ -737,9 +737,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
if (info.hasPhoto()) {
|
if (info.hasPhoto()) {
|
||||||
Bitmap bm = info.getPhotoBitmap();
|
Bitmap bm = info.getPhotoBitmap();
|
||||||
if (circular) {
|
if (circular) {
|
||||||
RoundedBitmapDrawable d = RoundedBitmapDrawableFactory.create(context.getResources(), bm);
|
RoundedBitmapDrawable rounded = RoundedBitmapDrawableFactory.create(context.getResources(), bm);
|
||||||
d.setCircular(true);
|
rounded.setCircular(true);
|
||||||
ivAvatar.setImageDrawable(d);
|
ivAvatar.setImageDrawable(rounded);
|
||||||
} else
|
} else
|
||||||
ivAvatar.setImageBitmap(info.getPhotoBitmap());
|
ivAvatar.setImageBitmap(info.getPhotoBitmap());
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in New Issue