mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-14 15:32:27 +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 {
|
val inputStream = try {
|
||||||
contentResolver.openInputStream(uri) ?: return
|
contentResolver.openInputStream(uri) ?: return
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
|
showErrorToast(e)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user