handle locked folders at the file picker adapter too

This commit is contained in:
tibbi 2019-07-02 21:27:54 +02:00
parent f5f6397743
commit f069d6e60d
2 changed files with 5 additions and 3 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 21 propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1 propVersionCode = 1
propVersionName = '5.14.9' propVersionName = '5.14.10'
kotlin_version = '1.3.40' kotlin_version = '1.3.40'
} }

View file

@ -139,8 +139,10 @@ class FilePickerDialog(val activity: BaseSimpleActivity,
val adapter = FilepickerItemsAdapter(activity, sortedItems, mDialogView.filepicker_list) { val adapter = FilepickerItemsAdapter(activity, sortedItems, mDialogView.filepicker_list) {
if ((it as FileDirItem).isDirectory) { if ((it as FileDirItem).isDirectory) {
currPath = it.path activity.handleLockedFolderOpening(it.path) {
tryUpdateItems() currPath = it.path
tryUpdateItems()
}
} else if (pickFile) { } else if (pickFile) {
currPath = it.path currPath = it.path
verifyPath() verifyPath()