Set the notification publicly visible

Signed-off-by: Dmitriy Bogdanov <d@di72nn.com>
This commit is contained in:
Dmitriy Bogdanov 2019-10-25 17:36:41 +04:00
parent c03bf74c7e
commit 58d620acf2
No known key found for this signature in database
GPG Key ID: F396CC2653B8F64D
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);