Set the notification publicly visible
Signed-off-by: Dmitriy Bogdanov <d@di72nn.com>
This commit is contained in:
parent
1dc3b512c8
commit
9591ed4cef
|
@ -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