From 37a6c9d6bceca3fdcf8a7513f0f43bb09ea0a30a Mon Sep 17 00:00:00 2001 From: n8fr8 Date: Sun, 15 Jul 2018 23:50:56 -0400 Subject: [PATCH] if video is activated, don't send still photo notifications --- src/main/java/org/havenapp/main/service/MonitorService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/havenapp/main/service/MonitorService.java b/src/main/java/org/havenapp/main/service/MonitorService.java index 64d1caf1..2a6d0066 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 @@ else if (mPrefs.getNotificationTimeMs() > 0 && mLastNotification != null) //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();