Merge pull request #254 from di72nn/public_notification

Set the notification publicly visible
This commit is contained in:
Óscar García Amor 2019-10-29 08:31:51 +01:00 committed by GitHub
commit 900fa4b67e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2079,6 +2079,7 @@ public class DownloadServiceImpl extends Service implements DownloadService
builder.setAutoCancel(false);
builder.setOngoing(true);
builder.setWhen(System.currentTimeMillis());
builder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC);
RemoteViews contentView = new RemoteViews(this.getPackageName(), R.layout.notification);
Util.linkButtons(this, contentView, false);