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
Code indentation
Aidara Moussa6e389d970d63
diff --git a/src/main/java/org/havenapp/main/service/MonitorService.java b/src/main/java/org/havenapp/main/service/MonitorService.javaindex c2d4602..c91f495 100644--- a/src/main/java/org/havenapp/main/service/MonitorService.java+++ b/src/main/java/org/havenapp/main/service/MonitorService.java@@ -52,30 +52,29 @@ public class MonitorService extends Service {*/private static MonitorService sInstance;- /**- * To show a notification on service start- */- NotificationManager manager;+ /**+ * To show a notification on service start+ */+ NotificationManager manager;NotificationChannel mChannel;final static String channelId = "monitor_id";final static CharSequence channelName = "Haven notifications";final static String channelDescription= "Important messages from Haven";- /**- * True only if service has been alerted by the accelerometer- */- private boolean already_alerted;+ /**+ * True only if service has been alerted by the accelerometer+ */+ private boolean already_alerted;- /**- * Object used to retrieve shared preferences- */- private PreferenceManager mPrefs = null;--- /**- * Incrementing alert id- */- int mNotificationAlertId = 7007;+ /**+ * Object used to retrieve shared preferences+ */+ private PreferenceManager mPrefs = null;++ /**+ * Incrementing alert id+ */+ int mNotificationAlertId = 7007;/*** Sensor Monitors@@ -92,7 +91,7 @@ public class MonitorService extends Service {*/Event mLastEvent;- /**+ /*** Handler for incoming messages*/class MessageHandler extends Handler {@@ -107,14 +106,13 @@ public class MonitorService extends Service {*/private final Messenger messenger = new Messenger(new MessageHandler());- /*- ** Helps keep the service awake when screen is off+ /**+ * Helps keep the service awake when screen is off*/PowerManager.WakeLock wakeLock;- /*- **- * Application+ /**+ * Application*/HavenApp mApp = null;