Add a log when deleting a file.
This commit is contained in:
@@ -36,6 +36,7 @@ import kotlinx.coroutines.flow.filterIsInstance
|
||||
import kotlinx.coroutines.flow.first
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
import kotlinx.coroutines.withContext
|
||||
import timber.log.Timber
|
||||
import java.io.File
|
||||
import java.io.InputStream
|
||||
import javax.inject.Inject
|
||||
@@ -82,6 +83,7 @@ class AndroidMediaPreProcessor @Inject constructor(
|
||||
}
|
||||
if (deleteOriginal) {
|
||||
tryOrNull {
|
||||
Timber.w("Deleting original uri $uri")
|
||||
contentResolver.delete(uri, null, null)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user