From 4d3d7eaf3fe0b9db46400ccda49ca01935619022 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 2 Jul 2019 21:17:27 +0200 Subject: [PATCH] handle locked passwords as copy/move destinations --- .../gallery/pro/dialogs/PickDirectoryDialog.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickDirectoryDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickDirectoryDialog.kt index 80b9a2f70..606c6ef12 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickDirectoryDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickDirectoryDialog.kt @@ -76,7 +76,9 @@ class PickDirectoryDialog(val activity: BaseSimpleActivity, val sourcePath: Stri private fun showOtherFolder() { FilePickerDialog(activity, sourcePath, false, showHidden, true, true) { - callback(it) + activity.handleLockedFolderOpening(it) { + callback(it) + } } } @@ -100,7 +102,9 @@ class PickDirectoryDialog(val activity: BaseSimpleActivity, val sourcePath: Stri activity.toast(R.string.source_and_destination_same) return@DirectoryAdapter } else { - callback(path) + activity.handleLockedFolderOpening(path) { + callback(path) + } dialog.dismiss() } } else {