From ea20c282ab9a28c299e799d37e05a8373b4ea8c6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 16 Dec 2018 10:23:17 +0100 Subject: [PATCH] avoid redundant folders adapter refreshing at direct subfolder groupind --- .../simplemobiletools/gallery/pro/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 5fd3f08be..3af4e7043 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 @@ -821,7 +821,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { } // we are looping through the already displayed folders looking for changes, do not do anything if nothing changed - if (directory == newDir) { + if (directory.copy(subfoldersCount = 0, subfoldersMediaCount = 0) == newDir) { continue }