limit the file size at 1 MB at folder import too

This commit is contained in:
tibbi 2021-03-14 17:34:27 +01:00
parent 4e3ba17bb6
commit 0ba1e0e683
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class ImportFolderDialog(val activity: SimpleActivity, val path: String, val cal
when {
file.isDirectory -> false
filename.isMediaFile() -> false
file.length() > 10 * 1000 * 1000 -> false
file.length() > 1000 * 1000 -> false
activity.notesDB.getNoteIdWithTitle(filename) != null -> false
else -> true
}