adding a crashfix at the pdf viewer

This commit is contained in:
tibbi 2022-07-23 20:32:33 +02:00
parent 8d9957a1e7
commit eed9a14c54
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class PDFViewerActivity : SimpleActivity() {
.spacing(15) .spacing(15)
.onTap { toggleFullScreen() } .onTap { toggleFullScreen() }
.onError { .onError {
showErrorToast(it.localizedMessage.toString()) showErrorToast(it.localizedMessage?.toString() ?: getString(R.string.unknown_error_occurred))
finish() finish()
} }
.load() .load()