Skip to content

Commit 42e4cb8

Browse files
committed
show errors thrown at PDF viewer
1 parent 5fb31ea commit 42e4cb8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ class PDFViewerActivity : SimpleActivity() {
8888
.scrollHandle(DefaultScrollHandle(this, primaryColor.getContrastColor(), primaryColor))
8989
.spacing(15)
9090
.onTap { toggleFullScreen() }
91+
.onError {
92+
showErrorToast(it.localizedMessage.toString())
93+
finish()
94+
}
9195
.load()
9296

9397
showSystemUI(true)

0 commit comments

Comments
 (0)