Merge pull request #185 from StephenBrown2/remove-extra-minus-sign

Remove extra minus sign from Bolus Wizard timeshift result
This commit is contained in:
Milos Kozak 2021-01-05 17:25:11 +01:00 committed by GitHub
commit dfba82b7a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -300,7 +300,7 @@ class BolusWizard @Inject constructor(
if (carbTime > 0) {
timeShift += " (+" + resourceHelper.gs(R.string.mins, carbTime) + ")"
} else if (carbTime < 0) {
timeShift += " (-" + resourceHelper.gs(R.string.mins, carbTime) + ")"
timeShift += " (" + resourceHelper.gs(R.string.mins, carbTime) + ")"
}
actions.add(resourceHelper.gs(R.string.carbs) + ": " + resourceHelper.gs(R.string.format_carbs, carbs).formatColor(resourceHelper, R.color.carbs) + timeShift)
}