mirror of
https://github.com/Matte23/circolapp.git
synced 2025-12-05 23:19:10 +00:00
Show notification when downloading file
This commit is contained in:
@@ -192,6 +192,7 @@ class MainActivity : AppCompatActivity(), CircularLetterAdapter.AdapterCallback
|
||||
|
||||
val request = DownloadManager.Request(Uri.parse(fileToDownload!!.url))
|
||||
request.setTitle(fileToDownload!!.name)
|
||||
request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED)
|
||||
request.setDestinationInExternalPublicDir(
|
||||
Environment.DIRECTORY_DOWNLOADS,
|
||||
"Circolapp/$safeFilename.$extension"
|
||||
|
||||
Reference in New Issue
Block a user