combov2: Fix last bolus field in combov2 UI fragment

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
This commit is contained in:
Carlos Rafael Giani 2022-11-11 18:05:31 +01:00
parent 03d226e725
commit 3f265c855c

View file

@ -258,7 +258,7 @@ class ComboV2Fragment : DaggerFragment() {
// we display a different message, one that
// warns the user that a long time passed
val bolusAgoText = when (val secondsPassed = (currentTimestamp - lastBolus.timestamp.toEpochMilliseconds()) / 1000) {
in 60..(30 * 60) ->
in 0..59 ->
rh.gs(R.string.combov2_less_than_one_minute_ago)
else ->