lets actually show an error if opening a file fails

This commit is contained in:
tibbi 2021-01-10 18:41:06 +01:00
parent e24a41d51d
commit 0fc35236ff
1 changed files with 1 additions and 0 deletions

View File

@ -564,6 +564,7 @@ class MainActivity : SimpleActivity() {
val inputStream = try { val inputStream = try {
contentResolver.openInputStream(uri) ?: return contentResolver.openInputStream(uri) ?: return
} catch (e: Exception) { } catch (e: Exception) {
showErrorToast(e)
return return
} }