TimeChangeType -> kt
This commit is contained in:
parent
c21b4beeba
commit
78c3810226
3 changed files with 7 additions and 10 deletions
|
@ -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
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
package info.nightscout.androidaps.utils;
|
|
||||||
|
|
||||||
public enum TimeChangeType {
|
|
||||||
TimezoneChanged,
|
|
||||||
DST_Started,
|
|
||||||
DST_Ended,
|
|
||||||
TimeChanged
|
|
||||||
}
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
package info.nightscout.androidaps.utils
|
||||||
|
|
||||||
|
enum class TimeChangeType {
|
||||||
|
TimezoneChanged, DSTStarted, DSTEnded, TimeChanged
|
||||||
|
}
|
Loading…
Reference in a new issue