#2369 Set event time for second event plus 1s too

This commit is contained in:
Johannes Mockenhaupt 2020-01-16 15:46:53 +01:00 committed by GitHub
parent 6e38f52c7d
commit 8f02459849
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,6 +131,7 @@ class FillDialog : DialogFragmentWithDate() {
}
if (insulinChange) {
// add a second for case of both checked
careportalEvent.date = eventTime + 1000
careportalEvent.json = generateJson(CareportalEvent.INSULINCHANGE, eventTime + 1000, notes).toString()
careportalEvent.eventType = CareportalEvent.INSULINCHANGE
NSUpload.uploadEvent(CareportalEvent.INSULINCHANGE, eventTime + 1000, notes)
@ -160,4 +161,4 @@ class FillDialog : DialogFragmentWithDate() {
return data
}
}
}