From 6992f2f5ee5bc0a1be0b8f109a33472a2eeec0fc Mon Sep 17 00:00:00 2001 From: Erik Duisters Date: Tue, 6 Nov 2018 19:55:30 +0100 Subject: [PATCH] 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 --- .../Plugins/SharePlugin/NotificationUpdateCallback.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/NotificationUpdateCallback.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/NotificationUpdateCallback.java index fb5adb76..c05270b2 100644 --- a/src/org/kde/kdeconnect/Plugins/SharePlugin/NotificationUpdateCallback.java +++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/NotificationUpdateCallback.java @@ -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);