Skip to content

Commit 85559ab

Browse files
committed
Clean up PDFViewerActivity for consistency
1 parent 4d0a712 commit 85559ab

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,19 @@ class PDFViewerActivity : SimpleActivity() {
110110
.onTap { toggleFullScreen() }
111111
.onError {
112112
if (it is PdfPasswordException) {
113-
// Already entered a password and it was wrong
113+
// already entered a password and it was wrong
114114
if (filePassword != null) {
115115
showErrorToast(getString(R.string.invalid_password))
116116
finish()
117117
} else {
118118
EnterPasswordDialog(
119119
this,
120-
callback = { password -> loadPdfViewer(uri, password) },
121-
cancelCallback = { finish() }
120+
callback = { password ->
121+
loadPdfViewer(uri, password)
122+
},
123+
cancelCallback = {
124+
finish()
125+
}
122126
)
123127
}
124128
} else {

0 commit comments

Comments
 (0)