replacing some "it"s with "path"s
This commit is contained in:
parent
e3fcd3c84b
commit
d654eca1f2
1 changed files with 3 additions and 3 deletions
|
@ -929,12 +929,12 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
val currentPaths = LinkedHashSet<String>()
|
val currentPaths = LinkedHashSet<String>()
|
||||||
folders.forEach {
|
folders.forEach {
|
||||||
val path = it
|
val path = it
|
||||||
if (it != internalPath && it != sdPath) {
|
if (path != internalPath && path != sdPath) {
|
||||||
if (folders.any { it != path && (File(path).parent == it || File(it).parent == File(path).parent) }) {
|
if (folders.any { it != path && (File(path).parent == it || File(it).parent == File(path).parent) }) {
|
||||||
val parent = File(it).parent
|
val parent = File(path).parent
|
||||||
currentPaths.add(parent)
|
currentPaths.add(parent)
|
||||||
} else {
|
} else {
|
||||||
currentPaths.add(it)
|
currentPaths.add(path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue