mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Refactoring
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user