Merge pull request #7050 from grote/4998-cancel-notification

Ensure that upload notification gets cancelled
This commit is contained in:
Tobias Kaminsky 2020-10-15 09:54:22 +02:00 committed by GitHub
commit a07b11df71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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