From a7e737ea50eef6c6d23b370140a4a21c772101e6 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 21 Jan 2020 11:12:28 +0100 Subject: [PATCH] Decrease gravatar timeout --- app/src/main/java/eu/faircode/email/ContactInfo.java | 4 ++-- 1 file 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 e8836526f1..a7e69ca534 100644 --- a/app/src/main/java/eu/faircode/email/ContactInfo.java +++ b/app/src/main/java/eu/faircode/email/ContactInfo.java @@ -60,8 +60,8 @@ public class ContactInfo { private static final ExecutorService executor = Helper.getBackgroundExecutor(1, "contact"); - private static final int GRAVATAR_TIMEOUT = 15 * 1000; // milliseconds - private static final long CACHE_CONTACT_DURATION = 120 * 1000L; // milliseconds + private static final int GRAVATAR_TIMEOUT = 5 * 1000; // milliseconds + private static final long CACHE_CONTACT_DURATION = 2 * 60 * 1000L; // milliseconds private ContactInfo() { }