BolusWizard typographic

This commit is contained in:
Milos Kozak 2020-08-10 12:35:59 +02:00
parent 2c8e39af7c
commit 1bbca2787b

View file

@ -280,9 +280,9 @@ class BolusWizard @Inject constructor(
if (carbs > 0) { if (carbs > 0) {
var timeShift = "" var timeShift = ""
if (carbTime > 0) { if (carbTime > 0) {
timeShift += " ( +" + resourceHelper.gs(R.string.mins, carbTime) + " )" timeShift += " (+" + resourceHelper.gs(R.string.mins, carbTime) + ")"
} else if (carbTime < 0) { } 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) + ": " + "<font color='" + resourceHelper.gc(R.color.carbs) + "'>" + carbs + "g" + timeShift + "</font>") actions.add(resourceHelper.gs(R.string.carbs) + ": " + "<font color='" + resourceHelper.gc(R.color.carbs) + "'>" + carbs + "g" + timeShift + "</font>")
} }