Small improvements

This commit is contained in:
M66B
2024-01-13 10:17:23 +01:00
parent a1e7d5e638
commit f60afc497b
2 changed files with 8 additions and 5 deletions

View File

@@ -177,7 +177,7 @@ public class ContactInfo {
// Favicons
Log.i("Cleanup avatars");
for (String type : new String[]{"favicons", "generated"}) {
for (String type : new String[]{"notcontact", "favicons", "generated"}) {
File[] favicons = Helper.ensureExists(context, type).listFiles();
if (favicons != null)
for (File file : favicons)
@@ -291,9 +291,10 @@ public class ContactInfo {
Helper.hasPermission(context, Manifest.permission.READ_CONTACTS)) {
File dir = Helper.ensureExists(context, "notcontact");
File file = new File(dir, ekey);
if (file.exists())
if (file.exists()) {
file.setLastModified(new Date().getTime());
Log.i("Contact negative cache key=" + ekey);
else {
} else {
ContentResolver resolver = context.getContentResolver();
Uri uri = Uri.withAppendedPath(
ContactsContract.CommonDataKinds.Email.CONTENT_LOOKUP_URI,