fix warning

This commit is contained in:
Milos Kozak 2022-07-20 14:30:35 +02:00
parent 1fcf9553d8
commit d14bc49dc0
2 changed files with 13 additions and 1 deletions

View file

@ -3,9 +3,11 @@
<words> <words>
<w>aaps</w> <w>aaps</w>
<w>abcdef</w> <w>abcdef</w>
<w>accu</w>
<w>acked</w> <w>acked</w>
<w>actionstring</w> <w>actionstring</w>
<w>aidex</w> <w>aidex</w>
<w>alarmack</w>
<w>allowednumbers</w> <w>allowednumbers</w>
<w>androidaps</w> <w>androidaps</w>
<w>autosens</w> <w>autosens</w>
@ -26,11 +28,15 @@
<w>carbsreq</w> <w>carbsreq</w>
<w>careportal</w> <w>careportal</w>
<w>cellnovo</w> <w>cellnovo</w>
<w>chek</w>
<w>clearalarm</w>
<w>crashlytics</w> <w>crashlytics</w>
<w>danar</w> <w>danar</w>
<w>danars</w> <w>danars</w>
<w>dataset</w> <w>dataset</w>
<w>datasets</w> <w>datasets</w>
<w>dbadd</w>
<w>dbupdate</w>
<w>devicestatus</w> <w>devicestatus</w>
<w>devicestatuses</w> <w>devicestatuses</w>
<w>devslope</w> <w>devslope</w>
@ -39,12 +45,14 @@
<w>diaconn</w> <w>diaconn</w>
<w>enteredby</w> <w>enteredby</w>
<w>enteredinsulin</w> <w>enteredinsulin</w>
<w>eopatch</w>
<w>eveningoutpost</w> <w>eveningoutpost</w>
<w>eversense</w> <w>eversense</w>
<w>extendedbolus</w> <w>extendedbolus</w>
<w>fileprovider</w> <w>fileprovider</w>
<w>firebase</w> <w>firebase</w>
<w>glimp</w> <w>glimp</w>
<w>glunovo</w>
<w>gson</w> <w>gson</w>
<w>hmac</w> <w>hmac</w>
<w>iage</w> <w>iage</w>
@ -79,12 +87,14 @@
<w>pred</w> <w>pred</w>
<w>profileswitch</w> <w>profileswitch</w>
<w>pumpbtcomm</w> <w>pumpbtcomm</w>
<w>pumpcontrol</w>
<w>quickwizard</w> <w>quickwizard</w>
<w>readstatus</w> <w>readstatus</w>
<w>realduration</w> <w>realduration</w>
<w>refresheventsfromnightscout</w> <w>refresheventsfromnightscout</w>
<w>rileylink</w> <w>rileylink</w>
<w>roboelectric</w> <w>roboelectric</w>
<w>rozman</w>
<w>sgvs</w> <w>sgvs</w>
<w>shortgramm</w> <w>shortgramm</w>
<w>sitechange</w> <w>sitechange</w>
@ -108,7 +118,8 @@
<w>tirs</w> <w>tirs</w>
<w>totp</w> <w>totp</w>
<w>tunedays</w> <w>tunedays</w>
<w>uart</w> <w>uart</w>
<w>urgentalarm</w>
<w>wizzardpage</w> <w>wizzardpage</w>
<w>xdrip</w> <w>xdrip</w>
<w>xstream</w> <w>xstream</w>

View file

@ -341,6 +341,7 @@ class MedtronicPumpPlugin @Inject constructor(
val refreshTypesNeededToReschedule: MutableSet<MedtronicStatusRefreshType> = mutableSetOf() val refreshTypesNeededToReschedule: MutableSet<MedtronicStatusRefreshType> = mutableSetOf()
for ((key, value) in statusRefresh) { for ((key, value) in statusRefresh) {
if (value > 0 && System.currentTimeMillis() > value) { if (value > 0 && System.currentTimeMillis() > value) {
@Suppress("WHEN_ENUM_CAN_BE_NULL_IN_JAVA")
when (key) { when (key) {
MedtronicStatusRefreshType.PumpHistory -> { MedtronicStatusRefreshType.PumpHistory -> {
readPumpHistory() readPumpHistory()