From 6cdf9ac905f488d1e4d1f0375fc0878b14f0d452 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 17 May 2020 10:18:37 +0200 Subject: [PATCH] adding some WhatsApp folders at the everShownFolders, check them too --- .../simplemobiletools/gallery/pro/helpers/Config.kt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Config.kt index ca35ccda2..9d70eb98c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Config.kt @@ -400,11 +400,13 @@ class Config(context: Context) : BaseConfig(context) { set(everShownFolders) = prefs.edit().putStringSet(EVER_SHOWN_FOLDERS, everShownFolders).apply() private fun getEverShownFolders() = hashSetOf( - internalStoragePath, - Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).absolutePath, - Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).absolutePath, - Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).absolutePath, - "${Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).absolutePath}/Screenshots" + internalStoragePath, + Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).absolutePath, + Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).absolutePath, + Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).absolutePath, + "${Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).absolutePath}/Screenshots", + "internalStoragePath/WhatsApp/Media/WhatsApp Images", + "internalStoragePath/WhatsApp/Media/WhatsApp Video" ) var showRecycleBinAtFolders: Boolean