1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-22 21:28:08 +01:00

change media download location to Download directory (#2384)

This commit is contained in:
Konrad Pozniak 2022-03-14 13:55:25 +01:00 committed by GitHub
parent e7886271fc
commit 991d261459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,10 +205,7 @@ class ViewMediaActivity : BaseActivity(), ViewImageFragment.PhotoActionsListener
val downloadManager = getSystemService(Context.DOWNLOAD_SERVICE) as DownloadManager
val request = DownloadManager.Request(Uri.parse(url))
request.setDestinationInExternalPublicDir(
Environment.DIRECTORY_PICTURES,
getString(R.string.app_name) + "/" + filename
)
request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename)
downloadManager.enqueue(request)
}