diff --git a/app/src/main/java/eu/faircode/email/ContactInfo.java b/app/src/main/java/eu/faircode/email/ContactInfo.java index 7e10d97d7c..753ad67d03 100644 --- a/app/src/main/java/eu/faircode/email/ContactInfo.java +++ b/app/src/main/java/eu/faircode/email/ContactInfo.java @@ -175,7 +175,7 @@ public class ContactInfo { } boolean circular = prefs.getBoolean("circular", true); - if (info.bitmap != null && circular) { + if (info.bitmap != null) { int w = info.bitmap.getWidth(); int h = info.bitmap.getHeight(); @@ -198,7 +198,12 @@ public class ContactInfo { paint.setAntiAlias(true); canvas.drawARGB(0, 0, 0, 0); paint.setColor(Color.GRAY); - canvas.drawOval(new RectF(dest), paint); + if (circular) + canvas.drawOval(new RectF(dest), paint); + else { + float radius = Helper.dp2pixels(context, 3); + canvas.drawRoundRect(new RectF(dest), radius, radius, paint); + } paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN)); canvas.drawBitmap(info.bitmap, source, dest, paint);