mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
moving whole new photo fetcher handling on a background thread
This commit is contained in:
@@ -56,7 +56,7 @@ class NewPhotoFetcher : JobService() {
|
||||
|
||||
override fun onStartJob(params: JobParameters): Boolean {
|
||||
mRunningParams = params
|
||||
|
||||
ensureBackgroundThread {
|
||||
val affectedFolderPaths = HashSet<String>()
|
||||
if (params.triggeredContentAuthorities != null && params.triggeredContentUris != null) {
|
||||
val ids = arrayListOf<String>()
|
||||
@@ -95,7 +95,6 @@ class NewPhotoFetcher : JobService() {
|
||||
}
|
||||
}
|
||||
|
||||
ensureBackgroundThread {
|
||||
affectedFolderPaths.forEach {
|
||||
updateDirectoryPath(it)
|
||||
}
|
||||
|
Reference in New Issue
Block a user