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
for #232 ensure setting notificaitons to 0 "max" works
n8fr8b95474649003
diff --git a/src/main/java/org/havenapp/main/service/MonitorService.java b/src/main/java/org/havenapp/main/service/MonitorService.javaindex 3b4f4a2..893cc9f 100644--- a/src/main/java/org/havenapp/main/service/MonitorService.java+++ b/src/main/java/org/havenapp/main/service/MonitorService.java@@ -270,10 +270,14 @@ public class MonitorService extends Service {mLastEvent.save();doNotification = true;}- else+ else if (mPrefs.getNotificationTimeMs() > 0 && mLastNotification != null){//check if time window is within configured notification time window- doNotification = !((now.getTime()-mLastNotification.getTime())<mPrefs.getNotificationTimeMs());+ doNotification = ((now.getTime()-mLastNotification.getTime())>mPrefs.getNotificationTimeMs());+ }+ else+ {+ doNotification = true;}EventTrigger eventTrigger = new EventTrigger();