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

if video is activated, don't send still photo notifications

n8fr837a6c9d6bcec
diff --git a/src/main/java/org/havenapp/main/service/MonitorService.java b/src/main/java/org/havenapp/main/service/MonitorService.java
index 64d1caf..2a6d006 100644
--- a/src/main/java/org/havenapp/main/service/MonitorService.java
+++ b/src/main/java/org/havenapp/main/service/MonitorService.java
@@ -305,9 +305,10 @@ public class MonitorService extends Service {
//check if time window is within configured notification time window
doNotification = ((now.getTime()-mLastNotification.getTime())>mPrefs.getNotificationTimeMs());
}
- else
+
+ if (doNotification)
{
- doNotification = true;
+ doNotification = !(mPrefs.getVideoMonitoringActive() && alertType == EventTrigger.CAMERA);
}
EventTrigger eventTrigger = new EventTrigger();