From f069d6e60dede52018ce5b0a6664e69234c88a21 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 2 Jul 2019 21:27:54 +0200 Subject: [PATCH] handle locked folders at the file picker adapter too --- build.gradle | 2 +- .../simplemobiletools/commons/dialogs/FilePickerDialog.kt | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 339b99338..2a92dfefb 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 - propVersionName = '5.14.9' + propVersionName = '5.14.10' kotlin_version = '1.3.40' } diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/FilePickerDialog.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/FilePickerDialog.kt index bf0e32ec2..9b40192e1 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/FilePickerDialog.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/FilePickerDialog.kt @@ -139,8 +139,10 @@ class FilePickerDialog(val activity: BaseSimpleActivity, val adapter = FilepickerItemsAdapter(activity, sortedItems, mDialogView.filepicker_list) { if ((it as FileDirItem).isDirectory) { - currPath = it.path - tryUpdateItems() + activity.handleLockedFolderOpening(it.path) { + currPath = it.path + tryUpdateItems() + } } else if (pickFile) { currPath = it.path verifyPath()