Refactoring

This commit is contained in:
M66B 2019-04-25 15:08:56 +02:00
parent b29835a98b
commit 7b71c20128
1 changed files with 3 additions and 3 deletions

View File

@ -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