AA/AAOS: clear list of chargers on loading error

This commit is contained in:
johan12345
2022-12-11 17:49:04 +01:00
parent 773d052819
commit 7b3bd84d18

View File

@@ -436,6 +436,7 @@ class MapScreen(ctx: CarContext, val session: EVMapSession) :
).awaitFinished()
if (response.status == Status.ERROR) {
loadingError = true
this@MapScreen.chargers = null
invalidate()
return@launch
}