Wear: fix ecarbs activity

This commit is contained in:
Milos Kozak 2022-06-29 09:25:27 +02:00
parent b223dfbaf0
commit 9b6477381b

View file

@ -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) +