adding a crashfix

This commit is contained in:
tibbi 2021-01-10 18:40:35 +01:00
parent d36246d445
commit e24a41d51d

View File

@ -561,7 +561,12 @@ class MainActivity : SimpleActivity() {
}
private fun checkUri(uri: Uri, onChecksPassed: () -> Unit) {
val inputStream = contentResolver.openInputStream(uri) ?: return
val inputStream = try {
contentResolver.openInputStream(uri) ?: return
} catch (e: Exception) {
return
}
if (inputStream.available() > 1000 * 1000) {
toast(R.string.file_too_large)
} else {