mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 18:59:18 +03:00
Merge pull request #7050 from grote/4998-cancel-notification
Ensure that upload notification gets cancelled
This commit is contained in:
commit
a07b11df71
1 changed files with 2 additions and 0 deletions
|
@ -751,6 +751,8 @@ public class FileUploader extends Service
|
|||
mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
|
||||
}
|
||||
|
||||
mNotificationManager.cancel(FOREGROUND_SERVICE_ID);
|
||||
|
||||
// Only notify if the upload fails
|
||||
if (!uploadResult.isCancelled() &&
|
||||
!uploadResult.isSuccess() &&
|
||||
|
|
Loading…
Reference in a new issue