handle locked passwords as copy/move destinations

This commit is contained in:
tibbi 2019-07-02 21:17:27 +02:00
parent 6625a3dbb7
commit 4d3d7eaf3f

View file

@ -76,9 +76,11 @@ class PickDirectoryDialog(val activity: BaseSimpleActivity, val sourcePath: Stri
private fun showOtherFolder() {
FilePickerDialog(activity, sourcePath, false, showHidden, true, true) {
activity.handleLockedFolderOpening(it) {
callback(it)
}
}
}
private fun gotDirectories(newDirs: ArrayList<Directory>) {
if (allDirectories.isEmpty()) {
@ -100,7 +102,9 @@ class PickDirectoryDialog(val activity: BaseSimpleActivity, val sourcePath: Stri
activity.toast(R.string.source_and_destination_same)
return@DirectoryAdapter
} else {
activity.handleLockedFolderOpening(path) {
callback(path)
}
dialog.dismiss()
}
} else {