Set the notification publicly visible
Signed-off-by: Dmitriy Bogdanov <d@di72nn.com>
This commit is contained in:
parent
c03bf74c7e
commit
58d620acf2
|
@ -2079,6 +2079,7 @@ public class DownloadServiceImpl extends Service implements DownloadService
|
||||||
builder.setAutoCancel(false);
|
builder.setAutoCancel(false);
|
||||||
builder.setOngoing(true);
|
builder.setOngoing(true);
|
||||||
builder.setWhen(System.currentTimeMillis());
|
builder.setWhen(System.currentTimeMillis());
|
||||||
|
builder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC);
|
||||||
|
|
||||||
RemoteViews contentView = new RemoteViews(this.getPackageName(), R.layout.notification);
|
RemoteViews contentView = new RemoteViews(this.getPackageName(), R.layout.notification);
|
||||||
Util.linkButtons(this, contentView, false);
|
Util.linkButtons(this, contentView, false);
|
||||||
|
|
Loading…
Reference in New Issue