reduce the max file size to import from 10 to 1 mb

This commit is contained in:
tibbi
2019-06-14 16:49:30 +02:00
parent 5893e5946f
commit c49e210344
26 changed files with 26 additions and 26 deletions

View File

@ -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)