mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-25 07:51:26 +01:00
replacing some "it"s with "path"s
This commit is contained in:
parent
e3fcd3c84b
commit
d654eca1f2
@ -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 New Issue
Block a user