lets actually show an error if opening a file fails
This commit is contained in:
parent
e24a41d51d
commit
0fc35236ff
|
@ -564,6 +564,7 @@ class MainActivity : SimpleActivity() {
|
|||
val inputStream = try {
|
||||
contentResolver.openInputStream(uri) ?: return
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue