From 0fe7a49e4b6665f4462a08db86a08d91abd6ddb7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 4 Dec 2018 10:18:01 +0100 Subject: [PATCH] exclude spam folders automatically only from the data folder --- .../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 7d2c9fbd7..0506277fa 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 @@ -1126,7 +1126,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { if (!checkedPaths.contains(currentString)) { val cnt = paths.count { it.startsWith(currentString) } - if (cnt > 50) { + if (cnt > 50 && currentString.startsWith("/Android/data")) { oftenRepeatedPaths.add(currentString) } }