diff --git a/app/src/main/java/sushi/hardcore/droidfs/EncryptedFileProvider.kt b/app/src/main/java/sushi/hardcore/droidfs/EncryptedFileProvider.kt index 494964e..dbb8c5b 100644 --- a/app/src/main/java/sushi/hardcore/droidfs/EncryptedFileProvider.kt +++ b/app/src/main/java/sushi/hardcore/droidfs/EncryptedFileProvider.kt @@ -9,6 +9,8 @@ import android.system.Os import android.util.Log import androidx.preference.PreferenceManager import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.launch import sushi.hardcore.droidfs.filesystems.EncryptedVolume import sushi.hardcore.droidfs.util.Compat @@ -86,7 +88,9 @@ class EncryptedFileProvider(context: Context) { } override fun free() { - Wiper.wipe(file) + GlobalScope.launch(Dispatchers.IO) { + Wiper.wipe(file) + } } }