diff --git a/app/src/main/java/eu/faircode/email/ContactInfo.java b/app/src/main/java/eu/faircode/email/ContactInfo.java index 12c5ba2868..6177a58484 100644 --- a/app/src/main/java/eu/faircode/email/ContactInfo.java +++ b/app/src/main/java/eu/faircode/email/ContactInfo.java @@ -602,6 +602,12 @@ public class ContactInfo { Log.e(ex); } + if (BuildConfig.DEBUG && + info.bitmap != null && + info.bitmap.getAllocationByteCount() > 1024 * 1024) + EntityLog.log(context, EntityLog.Type.Debug5, "Avatar " + info.email + + " " + info.type + "=" + Helper.humanReadableByteCount(info.bitmap.getAllocationByteCount())); + synchronized (emailContactInfo) { emailContactInfo.put(key, info); }