TimeChangeType -> kt

This commit is contained in:
Milos Kozak 2021-12-13 16:55:47 +01:00
parent c21b4beeba
commit 78c3810226
3 changed files with 7 additions and 10 deletions

View file

@ -60,10 +60,10 @@ class TimeDateOrTZChangeReceiver : DaggerBroadcastReceiver() {
} else { } else {
if (currentDst) { if (currentDst) {
aapsLogger.info(LTag.PUMP, "TimeDateOrTZChangeReceiver::DST started. Notifying pump driver.") aapsLogger.info(LTag.PUMP, "TimeDateOrTZChangeReceiver::DST started. Notifying pump driver.")
activePump.timezoneOrDSTChanged(TimeChangeType.DST_Started) activePump.timezoneOrDSTChanged(TimeChangeType.DSTStarted)
} else { } else {
aapsLogger.info(LTag.PUMP, "TimeDateOrTZChangeReceiver::DST ended. Notifying pump driver.") aapsLogger.info(LTag.PUMP, "TimeDateOrTZChangeReceiver::DST ended. Notifying pump driver.")
activePump.timezoneOrDSTChanged(TimeChangeType.DST_Ended) activePump.timezoneOrDSTChanged(TimeChangeType.DSTEnded)
} }
} }
isDST = currentDst isDST = currentDst

View file

@ -1,8 +0,0 @@
package info.nightscout.androidaps.utils;
public enum TimeChangeType {
TimezoneChanged,
DST_Started,
DST_Ended,
TimeChanged
}

View file

@ -0,0 +1,5 @@
package info.nightscout.androidaps.utils
enum class TimeChangeType {
TimezoneChanged, DSTStarted, DSTEnded, TimeChanged
}