mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-13 15:02:05 +02:00
make the limit really 10MB
This commit is contained in:
parent
87a17a671a
commit
807b8409a0
@ -161,7 +161,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
|
||||
|
||||
private fun openFile() {
|
||||
FilePickerDialog(this) {
|
||||
if (File(it).length() > 10) {
|
||||
if (File(it).length() > 10 * 1000 * 1000) {
|
||||
toast(R.string.file_too_large)
|
||||
} else {
|
||||
val filename = it.getFilenameFromPath()
|
||||
|
Loading…
x
Reference in New Issue
Block a user