From 3f88bb8e21cfb4b3698b1eb9ce429bfcf04301d6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 20 Dec 2017 19:24:17 +0100 Subject: [PATCH] scan the included folder after adding on a background thread --- app/build.gradle | 2 +- .../gallery/activities/IncludedFoldersActivity.kt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 9bb9c6b12..251649bb9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -42,7 +42,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:3.3.7' + implementation 'com.simplemobiletools:commons:3.3.9' implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.9.0' implementation 'com.theartofdev.edmodo:android-image-cropper:2.4.0' implementation 'com.android.support:multidex:1.0.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/IncludedFoldersActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/IncludedFoldersActivity.kt index 3f4067312..c9f67d621 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/IncludedFoldersActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/IncludedFoldersActivity.kt @@ -52,7 +52,9 @@ class IncludedFoldersActivity : SimpleActivity(), RefreshRecyclerViewListener { FilePickerDialog(this, pickFile = false, showHidden = config.shouldShowHidden) { config.addIncludedFolder(it) updateIncludedFolders() - scanPath(it) + Thread { + scanPath(it) + }.start() } } }