From afc07c5117021fac9c5a93bbdb4dc7c3a1e70625 Mon Sep 17 00:00:00 2001 From: Andy Rozman Date: Tue, 21 Jan 2020 20:02:24 +0000 Subject: [PATCH] - changed version information - added logging for time switches --- app/build.gradle | 2 +- .../androidaps/receivers/TimeDateOrTZChangeReceiver.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 610582e791..36f360da41 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -109,7 +109,7 @@ android { targetSdkVersion 28 multiDexEnabled true versionCode 1500 - version "omnipod-0.2-SNAPSHOT" + version "2.6-omnipod-0.2-SNAPSHOT" buildConfigField "String", "VERSION", '"' + version + '"' buildConfigField "String", "DEV_VERSION", '"2.6-dev"' buildConfigField "String", "BUILDVERSION", '"' + generateGitBuild() + '-' + generateDate() + '"' diff --git a/app/src/main/java/info/nightscout/androidaps/receivers/TimeDateOrTZChangeReceiver.java b/app/src/main/java/info/nightscout/androidaps/receivers/TimeDateOrTZChangeReceiver.java index e74dfec20d..3ee5ff24a2 100644 --- a/app/src/main/java/info/nightscout/androidaps/receivers/TimeDateOrTZChangeReceiver.java +++ b/app/src/main/java/info/nightscout/androidaps/receivers/TimeDateOrTZChangeReceiver.java @@ -13,6 +13,7 @@ import info.nightscout.androidaps.MainApp; import info.nightscout.androidaps.interfaces.PumpInterface; import info.nightscout.androidaps.logging.L; import info.nightscout.androidaps.plugins.configBuilder.ConfigBuilderPlugin; +import info.nightscout.androidaps.plugins.pump.omnipod.util.OmnipodUtil; public class TimeDateOrTZChangeReceiver extends BroadcastReceiver { @@ -26,6 +27,8 @@ public class TimeDateOrTZChangeReceiver extends BroadcastReceiver { LOG.debug("Date, Time and/or TimeZone changed."); + LOG.debug("TimeDateOrTZChangeReceiver::Intent::{}", OmnipodUtil.getGsonInstance().toJson(intent)); + if (action != null && activePump != null) { LOG.debug("Date, Time and/or TimeZone changed. Notifying pump driver."); activePump.timeDateOrTimeZoneChanged();