mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 04:28:00 +01:00
remove useless function definition for copy path existency
This commit is contained in:
parent
b84faf1763
commit
411c732fa8
1 changed files with 1 additions and 5 deletions
|
@ -183,15 +183,11 @@ class PickDirectoryDialog(
|
|||
private fun getOtherFolderOpeningPath(): String {
|
||||
val lastCopyPath = config.lastCopyPath
|
||||
|
||||
val lastCopyPathExist = {
|
||||
activity.getDoesFilePathExist(lastCopyPath)
|
||||
}
|
||||
|
||||
val lastCopyPathVisible = {
|
||||
showHidden || !lastCopyPath.split(File.separator).any { it.startsWith(".") && it.length > 1 }
|
||||
}
|
||||
|
||||
return if (lastCopyPathExist() && lastCopyPathVisible()) {
|
||||
return if (activity.getDoesFilePathExist(lastCopyPath) && lastCopyPathVisible()) {
|
||||
lastCopyPath
|
||||
} else {
|
||||
sourcePath
|
||||
|
|
Loading…
Reference in a new issue