combov2: Fix last bolus field in combov2 UI fragment
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
This commit is contained in:
parent
03d226e725
commit
3f265c855c
|
@ -258,7 +258,7 @@ class ComboV2Fragment : DaggerFragment() {
|
||||||
// we display a different message, one that
|
// we display a different message, one that
|
||||||
// warns the user that a long time passed
|
// warns the user that a long time passed
|
||||||
val bolusAgoText = when (val secondsPassed = (currentTimestamp - lastBolus.timestamp.toEpochMilliseconds()) / 1000) {
|
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)
|
rh.gs(R.string.combov2_less_than_one_minute_ago)
|
||||||
|
|
||||||
else ->
|
else ->
|
||||||
|
|
Loading…
Reference in a new issue