ChargerDetailScreen: fix nullability issue

This commit is contained in:
johan12345
2023-09-10 12:39:19 +02:00
parent a3b2b94b25
commit 3ce91a9c50

View File

@@ -383,8 +383,10 @@ class ChargerDetailScreen(ctx: CarContext, val chargerSparse: ChargeLocation) :
} else {
append(nameForPlugType(carContext.stringProvider(), cp.type))
}
append(" ")
append(cp.formatPower())
cp.formatPower()?.let {
append(" ")
append(it)
}
}
availability?.status?.get(cp)?.let { status ->
chargepointsText.append(