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 2da21f8fea
commit b9d51ebbf9

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()