From f736f15fbb02eaeeda4c5036412b8d3442b56f5a Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 18 May 2019 21:34:25 +0200 Subject: [PATCH] Cache contact info 120 seconds --- app/src/main/java/eu/faircode/email/ContactInfo.java | 3 +-- 1 file changed, 1 insertion(+), 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 ff19b52125..7af15a99fa 100644 --- a/app/src/main/java/eu/faircode/email/ContactInfo.java +++ b/app/src/main/java/eu/faircode/email/ContactInfo.java @@ -56,11 +56,10 @@ public class ContactInfo { private Uri lookupUri; private long time; - private static Object lock = new Object(); private static Map emailLookup = new ConcurrentHashMap<>(); private static Map emailContactInfo = new HashMap<>(); - private static final long CACHE_CONTACT_DURATION = 60 * 1000L; + private static final long CACHE_CONTACT_DURATION = 120 * 1000L; private ContactInfo() { }