From d45c6edc38e4bb7ef5cb26a4006880c2ee63c07e Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 21 Jun 2024 07:51:45 +0200 Subject: [PATCH] Reduced logging --- app/src/main/java/eu/faircode/email/ContactInfo.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ContactInfo.java b/app/src/main/java/eu/faircode/email/ContactInfo.java index d9cb4dfaad..27ea7b2743 100644 --- a/app/src/main/java/eu/faircode/email/ContactInfo.java +++ b/app/src/main/java/eu/faircode/email/ContactInfo.java @@ -607,14 +607,13 @@ public class ContactInfo { if (info.bitmap != null) { int abc = info.bitmap.getAllocationByteCount(); - if (abc > 1024 * 1024 || BuildConfig.DEBUG) { + if (!cached && (abc > 1024 * 1024 || BuildConfig.DEBUG)) { String msg = "Avatar type=" + info.type + " domain=" + UriHelper.getEmailDomain(info.email) + " size=" + Helper.humanReadableByteCount(abc) + "/" + Helper.humanReadableByteCount(info.bitmap.getByteCount()) + " " + info.bitmap.getWidth() + "x" + info.bitmap.getHeight() + " " + info.bitmap.getConfig() + - " play=" + BuildConfig.PLAY_STORE_RELEASE + - " cached=" + cached; + " play=" + BuildConfig.PLAY_STORE_RELEASE; if (!BuildConfig.DEBUG) Log.e(msg); EntityLog.log(context, EntityLog.Type.Debug4, msg);