mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 01:53:25 +02:00
Refactoring
This commit is contained in:
@@ -2641,11 +2641,9 @@ public class Helper {
|
||||
|
||||
private static final Map<File, Boolean> exists = new HashMap<>();
|
||||
|
||||
static File ensureExists(File parent, String subdir) {
|
||||
parent.mkdir();
|
||||
|
||||
File dir = new File(parent, subdir);
|
||||
Log.jni_safe_mkdirs(dir);
|
||||
static File ensureExists(Context context, String subdir) {
|
||||
File dir = new File(context.getFilesDir(), subdir);
|
||||
dir.mkdirs();
|
||||
|
||||
synchronized (exists) {
|
||||
if (exists.containsKey(dir))
|
||||
|
||||
Reference in New Issue
Block a user