Give MediaScannerConnection the right parameters to make it work better

This commit is contained in:
EncEx
2022-04-21 17:52:01 +08:00
parent 6c09e95041
commit ce43bbe73d
@@ -39,8 +39,8 @@ class DownloadService : Service() {
//通知媒体更新
MediaScannerConnection.scanFile(
context, arrayOf(FileD.toString()),
arrayOf(FileD.name.toString()), null
context, arrayOf(file.path),
null, null
)
return true