From d654eca1f27c3a1a5fdf4e7d0606335063a30c33 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 13 Dec 2018 12:40:58 +0100 Subject: [PATCH] replacing some "it"s with "path"s --- .../gallery/pro/activities/MainActivity.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt index 3ad0ce15d..699fcf19f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt @@ -929,12 +929,12 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { val currentPaths = LinkedHashSet() folders.forEach { 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) }) { - val parent = File(it).parent + val parent = File(path).parent currentPaths.add(parent) } else { - currentPaths.add(it) + currentPaths.add(path) } } }