mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-30 19:56:44 +01:00
handle locked passwords as copy/move destinations
This commit is contained in:
parent
6625a3dbb7
commit
4d3d7eaf3f
1 changed files with 6 additions and 2 deletions
|
@ -76,9 +76,11 @@ class PickDirectoryDialog(val activity: BaseSimpleActivity, val sourcePath: Stri
|
||||||
|
|
||||||
private fun showOtherFolder() {
|
private fun showOtherFolder() {
|
||||||
FilePickerDialog(activity, sourcePath, false, showHidden, true, true) {
|
FilePickerDialog(activity, sourcePath, false, showHidden, true, true) {
|
||||||
|
activity.handleLockedFolderOpening(it) {
|
||||||
callback(it)
|
callback(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun gotDirectories(newDirs: ArrayList<Directory>) {
|
private fun gotDirectories(newDirs: ArrayList<Directory>) {
|
||||||
if (allDirectories.isEmpty()) {
|
if (allDirectories.isEmpty()) {
|
||||||
|
@ -100,7 +102,9 @@ class PickDirectoryDialog(val activity: BaseSimpleActivity, val sourcePath: Stri
|
||||||
activity.toast(R.string.source_and_destination_same)
|
activity.toast(R.string.source_and_destination_same)
|
||||||
return@DirectoryAdapter
|
return@DirectoryAdapter
|
||||||
} else {
|
} else {
|
||||||
|
activity.handleLockedFolderOpening(path) {
|
||||||
callback(path)
|
callback(path)
|
||||||
|
}
|
||||||
dialog.dismiss()
|
dialog.dismiss()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue