From 58d620acf27683ef851d16192002a8b36cec9274 Mon Sep 17 00:00:00 2001 From: Dmitriy Bogdanov Date: Fri, 25 Oct 2019 17:36:41 +0400 Subject: [PATCH] Set the notification publicly visible Signed-off-by: Dmitriy Bogdanov --- .../java/org/moire/ultrasonic/service/DownloadServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ultrasonic/src/main/java/org/moire/ultrasonic/service/DownloadServiceImpl.java b/ultrasonic/src/main/java/org/moire/ultrasonic/service/DownloadServiceImpl.java index 96095c59..bcb3023c 100644 --- a/ultrasonic/src/main/java/org/moire/ultrasonic/service/DownloadServiceImpl.java +++ b/ultrasonic/src/main/java/org/moire/ultrasonic/service/DownloadServiceImpl.java @@ -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);