limit the file size at 1 MB at folder import too
This commit is contained in:
parent
4e3ba17bb6
commit
0ba1e0e683
|
@ -47,7 +47,7 @@ class ImportFolderDialog(val activity: SimpleActivity, val path: String, val cal
|
||||||
when {
|
when {
|
||||||
file.isDirectory -> false
|
file.isDirectory -> false
|
||||||
filename.isMediaFile() -> false
|
filename.isMediaFile() -> false
|
||||||
file.length() > 10 * 1000 * 1000 -> false
|
file.length() > 1000 * 1000 -> false
|
||||||
activity.notesDB.getNoteIdWithTitle(filename) != null -> false
|
activity.notesDB.getNoteIdWithTitle(filename) != null -> false
|
||||||
else -> true
|
else -> true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue