mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-13 06:52:03 +02:00
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…
x
Reference in New Issue
Block a user