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 committed by Óscar García Amor
parent 1dc3b512c8
commit 9591ed4cef
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);