make the limit really 10MB

This commit is contained in:
tibbi 2017-03-07 20:25:58 +01:00
parent 87a17a671a
commit 807b8409a0

View File

@ -161,7 +161,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
private fun openFile() { private fun openFile() {
FilePickerDialog(this) { FilePickerDialog(this) {
if (File(it).length() > 10) { if (File(it).length() > 10 * 1000 * 1000) {
toast(R.string.file_too_large) toast(R.string.file_too_large)
} else { } else {
val filename = it.getFilenameFromPath() val filename = it.getFilenameFromPath()