mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 07:23:03 +00:00
Refactoring
This commit is contained in:
parent
b29835a98b
commit
7b71c20128
1 changed files with 3 additions and 3 deletions
|
@ -737,9 +737,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
if (info.hasPhoto()) {
|
||||
Bitmap bm = info.getPhotoBitmap();
|
||||
if (circular) {
|
||||
RoundedBitmapDrawable d = RoundedBitmapDrawableFactory.create(context.getResources(), bm);
|
||||
d.setCircular(true);
|
||||
ivAvatar.setImageDrawable(d);
|
||||
RoundedBitmapDrawable rounded = RoundedBitmapDrawableFactory.create(context.getResources(), bm);
|
||||
rounded.setCircular(true);
|
||||
ivAvatar.setImageDrawable(rounded);
|
||||
} else
|
||||
ivAvatar.setImageBitmap(info.getPhotoBitmap());
|
||||
} else
|
||||
|
|
Loading…
Reference in a new issue