From 62a852e42357dce5185452c923757fd1b5a4a1b0 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 27 Apr 2022 15:01:16 +0200 Subject: [PATCH] Increased favicon fetch size --- app/src/main/java/eu/faircode/email/ContactInfo.java | 2 +- app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ContactInfo.java b/app/src/main/java/eu/faircode/email/ContactInfo.java index cd8a4df727..015b2b6cb5 100644 --- a/app/src/main/java/eu/faircode/email/ContactInfo.java +++ b/app/src/main/java/eu/faircode/email/ContactInfo.java @@ -98,7 +98,7 @@ public class ContactInfo { private boolean known; private long time; - static final int FAVICON_READ_BYTES = 5000; + static final int FAVICON_READ_BYTES = 50 * 1024; private static Map emailLookup = new ConcurrentHashMap<>(); private static final Map emailContactInfo = new HashMap<>(); diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java index 7bfb97b954..6c1954f26f 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java @@ -1216,7 +1216,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer // Initialize FragmentDialogTheme.setBackground(getContext(), view, false); swFaviconsPartial.setText(getString(R.string.title_advanced_favicons_partial, - Helper.humanReadableByteCount(ContactInfo.FAVICON_READ_BYTES))); + Helper.humanReadableByteCount(ContactInfo.FAVICON_READ_BYTES, false))); grpUnzip.setVisibility(Build.VERSION.SDK_INT < Build.VERSION_CODES.O ? View.GONE : View.VISIBLE); tvBimiUnverified.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);