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
improving notifications and adding video! if notification time is 0, then send every command add support for sending video clips via Signal
n8fr8eb777a5d4ee8
diff --git a/src/main/java/org/havenapp/main/service/MonitorService.java b/src/main/java/org/havenapp/main/service/MonitorService.javaindex a687d15..68a2a25 100644--- a/src/main/java/org/havenapp/main/service/MonitorService.java+++ b/src/main/java/org/havenapp/main/service/MonitorService.java@@ -230,7 +230,9 @@ public class MonitorService extends Service {mBaroMonitor = new BarometerMonitor(this);mLightMonitor = new AmbientLightMonitor(this);- if (!mPrefs.getMicrophoneSensitivity().equals(PreferenceManager.OFF) && !mPrefs.getVideoMonitoringActive())+ // && !mPrefs.getVideoMonitoringActive()++ if (!mPrefs.getMicrophoneSensitivity().equals(PreferenceManager.OFF))mMicMonitor = new MicrophoneMonitor(this);@@ -253,7 +255,9 @@ public class MonitorService extends Service {mBaroMonitor.stop(this);mLightMonitor.stop(this);- if (!mPrefs.getMicrophoneSensitivity().equals(PreferenceManager.OFF) && !mPrefs.getVideoMonitoringActive())+ // && !mPrefs.getVideoMonitoringActive())++ if (!mPrefs.getMicrophoneSensitivity().equals(PreferenceManager.OFF))mMicMonitor.stop(this);}@@ -270,6 +274,10 @@ public class MonitorService extends Service {mLastEvent.save();doNotification = true;}+ else if (mPrefs.getNotificationTimeMs() == 0)+ {+ doNotification = true;+ }else if (mPrefs.getNotificationTimeMs() > 0 && mLastNotification != null){//check if time window is within configured notification time window@@ -318,6 +326,9 @@ public class MonitorService extends Service {} else if (eventTrigger.getType() == EventTrigger.MICROPHONE) {attachment = eventTrigger.getPath();}+ else if (eventTrigger.getType() == EventTrigger.CAMERA_VIDEO) {+ attachment = eventTrigger.getPath();+ }sender.sendMessage(recips, alertMessage.toString(), attachment);} else if (mPrefs.getSmsActivation()) {