mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-20 18:40:20 +01:00
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 {
|
||||
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user