Skip to content

Commit

Permalink
if video is activated, don't send still photo notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Jul 16, 2018
1 parent 990ce9e commit 37a6c9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/havenapp/main/service/MonitorService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 37a6c9d

Please sign in to comment.