mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
reduce the max file size to import from 10 to 1 mb
This commit is contained in:
@ -380,7 +380,7 @@ class MainActivity : SimpleActivity() {
|
||||
val file = File(path)
|
||||
if (path.isMediaFile()) {
|
||||
toast(R.string.invalid_file_format)
|
||||
} else if (file.length() > 10 * 1000 * 1000) {
|
||||
} else if (file.length() > 1000 * 1000) {
|
||||
toast(R.string.file_too_large)
|
||||
} else if (checkTitle && mNotes.any { it.title.equals(path.getFilenameFromPath(), true) }) {
|
||||
toast(R.string.title_taken)
|
||||
|
Reference in New Issue
Block a user