This commit is contained in:
M66B
2023-12-12 14:53:18 +01:00
parent e7e731e04a
commit bac28a9b05
3 changed files with 1 additions and 18 deletions

View File

@@ -2655,18 +2655,6 @@ public class Helper {
return dir;
}
static File getExternalFilesDir(Context context) {
return getExternalFilesDir(context, null);
}
static File getExternalFilesDir(Context context, String type) {
File[] dirs = ContextCompat.getExternalFilesDirs(context, type);
if (dirs == null || dirs.length == 0)
return context.getExternalFilesDir(type);
else
return dirs[0];
}
static String sanitizeFilename(String name) {
if (name == null)
return null;