moving whole new photo fetcher handling on a background thread

This commit is contained in:
tibbi 2019-07-28 19:30:17 +02:00
parent b1b173081a
commit 9c7c995251

View file

@ -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)
}