mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-09 16:48:44 +01:00
remove useless function definition for copy path existency
This commit is contained in:
parent
b84faf1763
commit
411c732fa8
@ -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…
x
Reference in New Issue
Block a user