2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 06:05:12 +00:00

While uploading a file the notification should not be dismissable

Summary: BUG: 399983

Test Plan:
Send a big file from Android
The notification can not be dismissed while the file is being transferred

Reviewers: #kde_connect, nicolasfella

Reviewed By: #kde_connect, nicolasfella

Subscribers: nicolasfella, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D16713
This commit is contained in:
Erik Duisters
2018-11-06 19:55:30 +01:00
committed by Nicolas Fella
parent bb3018ea76
commit 6992f2f5ee

View File

@@ -42,6 +42,7 @@ class NotificationUpdateCallback extends Device.SendPacketStatusCallback {
builder = new NotificationCompat.Builder(context, NotificationHelper.Channels.FILETRANSFER)
.setSmallIcon(android.R.drawable.stat_sys_upload)
.setAutoCancel(true)
.setOngoing(true)
.setProgress(100, 0, false)
.setContentTitle(title)
.setTicker(title);