Refactoring

This commit is contained in:
M66B
2023-12-13 07:21:15 +01:00
parent 9f1bab8e19
commit 9569b0e28e
14 changed files with 25 additions and 28 deletions

View File

@@ -357,7 +357,7 @@ public class ContactInfo {
final String domain = d.toLowerCase(Locale.ROOT);
File dir = Helper.ensureExists(context.getFilesDir(), "favicons");
File dir = Helper.ensureExists(context, "favicons");
try {
// check cache
@@ -548,7 +548,7 @@ public class ContactInfo {
String tag = (TextUtils.isEmpty(info.email) ? name : info.email);
String etag = (TextUtils.isEmpty(info.email) ? Helper.sanitizeFilename(name + "@name") : ekey);
if (info.bitmap == null && generated && !TextUtils.isEmpty(tag)) {
File dir = Helper.ensureExists(context.getFilesDir(), "generated");
File dir = Helper.ensureExists(context, "generated");
File[] files = dir.listFiles(new FilenameFilter() {
@Override
public boolean accept(File file, String name) {