Skip to content

Commit 37a6c9d

Browse files
committed
if video is activated, don't send still photo notifications
1 parent 990ce9e commit 37a6c9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/havenapp/main/service/MonitorService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,10 @@ else if (mPrefs.getNotificationTimeMs() > 0 && mLastNotification != null)
305305
//check if time window is within configured notification time window
306306
doNotification = ((now.getTime()-mLastNotification.getTime())>mPrefs.getNotificationTimeMs());
307307
}
308-
else
308+
309+
if (doNotification)
309310
{
310-
doNotification = true;
311+
doNotification = !(mPrefs.getVideoMonitoringActive() && alertType == EventTrigger.CAMERA);
311312
}
312313

313314
EventTrigger eventTrigger = new EventTrigger();

0 commit comments

Comments
 (0)