diff --git a/app/src/main/java/info/nightscout/androidaps/Constants.java b/app/src/main/java/info/nightscout/androidaps/Constants.java index efcf1ca137..8946edd2c4 100644 --- a/app/src/main/java/info/nightscout/androidaps/Constants.java +++ b/app/src/main/java/info/nightscout/androidaps/Constants.java @@ -19,7 +19,7 @@ public class Constants { public static final Integer notificationID = 556677; - public static final int hoursToKeepInDatabase = 24; + public static final int hoursToKeepInDatabase = 72; public static final long keepAliveMsecs = 30 * 60 * 1000L; diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/DanaConnection.java b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/DanaConnection.java index 8a4c81fdcd..302af16966 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/DanaConnection.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/DanaConnection.java @@ -79,7 +79,6 @@ public class DanaConnection { private static final UUID SPP_UUID = UUID.fromString("00001101-0000-1000-8000-00805f9b34fb"); - // TODO: keepalive kills active connection public DanaConnection(Bus bus) { danaRFragment = (DanaRFragment) MainActivity.getSpecificPlugin(DanaRFragment.class); danaRFragment.setDanaConnection(this); diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/Services/DanaRService.java b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/Services/DanaRService.java index 0cfdeefac5..bb5eef942d 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/Services/DanaRService.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/Services/DanaRService.java @@ -142,11 +142,4 @@ public class DanaRService extends Service { public IBinder onBind(Intent intent) { return null; } - - @Override - public void onCreate() { - if (Config.logFunctionCalls) - log.info("onCreate"); - mHandler = new Handler(); // TODO: not needed??? - } }