show errors thrown at PDF viewer

This commit is contained in:
tibbi 2022-06-15 21:51:53 +02:00
parent 5fb31eab57
commit 42e4cb8bbe

View File

@ -88,6 +88,10 @@ class PDFViewerActivity : SimpleActivity() {
.scrollHandle(DefaultScrollHandle(this, primaryColor.getContrastColor(), primaryColor))
.spacing(15)
.onTap { toggleFullScreen() }
.onError {
showErrorToast(it.localizedMessage.toString())
finish()
}
.load()
showSystemUI(true)