Skip to content

Commit 0fc3523

Browse files
committed
lets actually show an error if opening a file fails
1 parent e24a41d commit 0fc3523

File tree

1 file changed

+1
-0
lines changed
  • app/src/main/kotlin/com/simplemobiletools/notes/pro/activities

1 file changed

+1
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ class MainActivity : SimpleActivity() {
564564
val inputStream = try {
565565
contentResolver.openInputStream(uri) ?: return
566566
} catch (e: Exception) {
567+
showErrorToast(e)
567568
return
568569
}
569570

0 commit comments

Comments
 (0)