getExternalFilesDir compat

This commit is contained in:
M66B
2022-11-03 16:57:53 +01:00
parent 8b5fd03117
commit cc0b6b1560
4 changed files with 20 additions and 8 deletions

View File

@@ -164,7 +164,7 @@ public class EntityAttachment {
boolean external_storage = prefs.getBoolean("external_storage", false);
File root = (external_storage
? context.getExternalFilesDir(null)
? Helper.getExternalFilesDir(context)
: context.getFilesDir());
return root;
}