From 85559abbf43bb89d4fde2106c63c9e7c8838a69f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Fri, 7 Jul 2023 08:06:50 +0200 Subject: [PATCH] Clean up PDFViewerActivity for consistency --- .../filemanager/pro/activities/PDFViewerActivity.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt index 8e65eba3..949c60e7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt @@ -110,15 +110,19 @@ class PDFViewerActivity : SimpleActivity() { .onTap { toggleFullScreen() } .onError { if (it is PdfPasswordException) { - // Already entered a password and it was wrong + // already entered a password and it was wrong if (filePassword != null) { showErrorToast(getString(R.string.invalid_password)) finish() } else { EnterPasswordDialog( this, - callback = { password -> loadPdfViewer(uri, password) }, - cancelCallback = { finish() } + callback = { password -> + loadPdfViewer(uri, password) + }, + cancelCallback = { + finish() + } ) } } else {