Skip to content

armgit / haven

Public Imported from GitHub
0

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors

Hide the service notification from secure lockscreen

Stokesbookf7ebf69f0333
diff --git a/src/main/java/org/havenapp/main/service/MonitorService.java b/src/main/java/org/havenapp/main/service/MonitorService.java
index 7b8ace5..efe95c0 100644
--- a/src/main/java/org/havenapp/main/service/MonitorService.java
+++ b/src/main/java/org/havenapp/main/service/MonitorService.java
@@ -192,6 +192,7 @@ public class MonitorService extends Service {
mBuilder.setPriority(NotificationCompat.PRIORITY_MIN);
mBuilder.setContentIntent(resultPendingIntent);
mBuilder.setWhen(System.currentTimeMillis());
+ mBuilder.setVisibility(NotificationCompat.VISIBILITY_SECRET);
startForeground(1, mBuilder.build());