make avatar rounding independent of image size

This commit is contained in:
Konrad Pozniak 2018-03-30 10:36:19 +02:00
commit 2851e4d38b
7 changed files with 27 additions and 17 deletions

View file

@ -145,7 +145,7 @@ public class NotificationHelper {
try {
accountAvatar = Picasso.with(context)
.load(body.getAccount().getAvatar())
.transform(new RoundedTransformation(7, 0))
.transform(new RoundedTransformation(20))
.get();
} catch (IOException e) {
Log.d(TAG, "error loading account avatar", e);