mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
Make upload notifications dismissable
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
2da21f8fea
commit
b9d51ebbf9
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue