From accf91666f74c369f3f2458351a7d2bd6b992ea5 Mon Sep 17 00:00:00 2001 From: JAI Date: Tue, 15 Mar 2022 13:36:02 +0530 Subject: [PATCH] Fixed: Sync Thread bug --- .../src/main/kotlin/com/ivehement/saf/api/DocumentFileApi.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/ivehement/saf/api/DocumentFileApi.kt b/android/src/main/kotlin/com/ivehement/saf/api/DocumentFileApi.kt index 64bbb92..f267fc6 100644 --- a/android/src/main/kotlin/com/ivehement/saf/api/DocumentFileApi.kt +++ b/android/src/main/kotlin/com/ivehement/saf/api/DocumentFileApi.kt @@ -71,7 +71,7 @@ internal class DocumentFileApi(private val plugin: SafPlugin) : } SYNC_WITH_EXTERNAL_FILES_DIRECTORY -> { if (Build.VERSION.SDK_INT >= API_21) { - Thread(syncWithExternalFilesDirectory(call, result, plugin.context, util!!)).run() + Thread(syncWithExternalFilesDirectory(call, result, plugin.context, util!!)).start() } } DYNAMIC_SYNC_WITH_EXTERNAL_FILES_DIRECTORY -> {