mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-29 16:08: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 {
|
private fun getOtherFolderOpeningPath(): String {
|
||||||
val lastCopyPath = config.lastCopyPath
|
val lastCopyPath = config.lastCopyPath
|
||||||
|
|
||||||
val lastCopyPathExist = {
|
|
||||||
activity.getDoesFilePathExist(lastCopyPath)
|
|
||||||
}
|
|
||||||
|
|
||||||
val lastCopyPathVisible = {
|
val lastCopyPathVisible = {
|
||||||
showHidden || !lastCopyPath.split(File.separator).any { it.startsWith(".") && it.length > 1 }
|
showHidden || !lastCopyPath.split(File.separator).any { it.startsWith(".") && it.length > 1 }
|
||||||
}
|
}
|
||||||
|
|
||||||
return if (lastCopyPathExist() && lastCopyPathVisible()) {
|
return if (activity.getDoesFilePathExist(lastCopyPath) && lastCopyPathVisible()) {
|
||||||
lastCopyPath
|
lastCopyPath
|
||||||
} else {
|
} else {
|
||||||
sourcePath
|
sourcePath
|
||||||
|
|
Loading…
Reference in a new issue