From 78c38102260cc405a7cd177ec13031ccebc5cfa3 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 13 Dec 2021 16:55:47 +0100 Subject: [PATCH] TimeChangeType -> kt --- .../androidaps/receivers/TimeDateOrTZChangeReceiver.kt | 4 ++-- .../info/nightscout/androidaps/utils/TimeChangeType.java | 8 -------- .../info/nightscout/androidaps/utils/TimeChangeType.kt | 5 +++++ 3 files changed, 7 insertions(+), 10 deletions(-) delete mode 100644 core/src/main/java/info/nightscout/androidaps/utils/TimeChangeType.java create mode 100644 core/src/main/java/info/nightscout/androidaps/utils/TimeChangeType.kt diff --git a/app/src/main/java/info/nightscout/androidaps/receivers/TimeDateOrTZChangeReceiver.kt b/app/src/main/java/info/nightscout/androidaps/receivers/TimeDateOrTZChangeReceiver.kt index 07c991eb4d..f07a843d00 100644 --- a/app/src/main/java/info/nightscout/androidaps/receivers/TimeDateOrTZChangeReceiver.kt +++ b/app/src/main/java/info/nightscout/androidaps/receivers/TimeDateOrTZChangeReceiver.kt @@ -60,10 +60,10 @@ class TimeDateOrTZChangeReceiver : DaggerBroadcastReceiver() { } else { if (currentDst) { aapsLogger.info(LTag.PUMP, "TimeDateOrTZChangeReceiver::DST started. Notifying pump driver.") - activePump.timezoneOrDSTChanged(TimeChangeType.DST_Started) + activePump.timezoneOrDSTChanged(TimeChangeType.DSTStarted) } else { aapsLogger.info(LTag.PUMP, "TimeDateOrTZChangeReceiver::DST ended. Notifying pump driver.") - activePump.timezoneOrDSTChanged(TimeChangeType.DST_Ended) + activePump.timezoneOrDSTChanged(TimeChangeType.DSTEnded) } } isDST = currentDst diff --git a/core/src/main/java/info/nightscout/androidaps/utils/TimeChangeType.java b/core/src/main/java/info/nightscout/androidaps/utils/TimeChangeType.java deleted file mode 100644 index b822b4c849..0000000000 --- a/core/src/main/java/info/nightscout/androidaps/utils/TimeChangeType.java +++ /dev/null @@ -1,8 +0,0 @@ -package info.nightscout.androidaps.utils; - -public enum TimeChangeType { - TimezoneChanged, - DST_Started, - DST_Ended, - TimeChanged -} diff --git a/core/src/main/java/info/nightscout/androidaps/utils/TimeChangeType.kt b/core/src/main/java/info/nightscout/androidaps/utils/TimeChangeType.kt new file mode 100644 index 0000000000..aadf96aa01 --- /dev/null +++ b/core/src/main/java/info/nightscout/androidaps/utils/TimeChangeType.kt @@ -0,0 +1,5 @@ +package info.nightscout.androidaps.utils + +enum class TimeChangeType { + TimezoneChanged, DSTStarted, DSTEnded, TimeChanged +} \ No newline at end of file