replacing some "it"s with "path"s

This commit is contained in:
tibbi 2018-12-13 12:40:58 +01:00
parent e3fcd3c84b
commit d654eca1f2

View File

@ -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)
} }
} }
} }