Wear: fix ecarbs activity
This commit is contained in:
parent
b223dfbaf0
commit
9b6477381b
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ class DataHandlerMobile @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleECarbsPreCheck(command: EventData.ActionECarbsPreCheck) {
|
private fun handleECarbsPreCheck(command: EventData.ActionECarbsPreCheck) {
|
||||||
val startTimeStamp = System.currentTimeMillis() + T.hours(command.carbsTimeShift.toLong()).msecs()
|
val startTimeStamp = System.currentTimeMillis() + T.mins(command.carbsTimeShift.toLong()).msecs()
|
||||||
val carbsAfterConstraints = constraintChecker.applyCarbsConstraints(Constraint(command.carbs)).value()
|
val carbsAfterConstraints = constraintChecker.applyCarbsConstraints(Constraint(command.carbs)).value()
|
||||||
var message = rh.gs(R.string.carbs) + ": " + carbsAfterConstraints + "g" +
|
var message = rh.gs(R.string.carbs) + ": " + carbsAfterConstraints + "g" +
|
||||||
"\n" + rh.gs(R.string.time) + ": " + dateUtil.timeString(startTimeStamp) +
|
"\n" + rh.gs(R.string.time) + ": " + dateUtil.timeString(startTimeStamp) +
|
||||||
|
|
Loading…
Reference in a new issue