Skip to content

Commit eed9a14

Browse files
committed
adding a crashfix at the pdf viewer
1 parent 8d9957a commit eed9a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class PDFViewerActivity : SimpleActivity() {
8989
.spacing(15)
9090
.onTap { toggleFullScreen() }
9191
.onError {
92-
showErrorToast(it.localizedMessage.toString())
92+
showErrorToast(it.localizedMessage?.toString() ?: getString(R.string.unknown_error_occurred))
9393
finish()
9494
}
9595
.load()

0 commit comments

Comments
 (0)