Make upload notifications dismissable

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-04-19 09:34:41 +02:00 committed by Alper Öztürk
parent 20cabd4aab
commit 1e420bbeab
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class UploadNotificationManager(private val context: Context, viewThemeUtils: Vi
)
setTicker(context.getString(R.string.foreground_service_upload))
setProgress(100, 0, false)
setOngoing(true)
setOngoing(false)
clearActions()
addAction(
@ -179,7 +179,7 @@ class UploadNotificationManager(private val context: Context, viewThemeUtils: Vi
notificationBuilder.apply {
setContentTitle(context.getString(R.string.upload_global_pause_title))
setTicker(context.getString(R.string.upload_global_pause_title))
setOngoing(true)
setOngoing(false)
setAutoCancel(false)
setProgress(0, 0, false)
clearActions()