Fix for #116
This commit is contained in:
parent
80781821a8
commit
ad16e6eb50
1 changed files with 1 additions and 0 deletions
|
@ -140,6 +140,7 @@ class DownloadWorker(private val context: Context, params: WorkerParameters) : W
|
||||||
progress = PROGRESS_DONE
|
progress = PROGRESS_DONE
|
||||||
))
|
))
|
||||||
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.P) {
|
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.P) {
|
||||||
|
values.clear() // See #116 to avoid "movement" error
|
||||||
values.put(MediaStore.MediaColumns.IS_PENDING, 0)
|
values.put(MediaStore.MediaColumns.IS_PENDING, 0)
|
||||||
resolver.update(uri, values, null, null)
|
resolver.update(uri, values, null, null)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue