Android Auto: fix loading data on first start

This commit is contained in:
johan12345
2022-09-12 08:19:00 +02:00
parent 4fb5090e9b
commit fe33dca1bc

View File

@@ -296,10 +296,10 @@ class MapScreen(ctx: CarContext, val session: EVMapSession) :
) {
return
}
val previousLocation = this.location
this.location = location
if (updateCoroutine != null) {
// don't update while still loading last update
return
if (previousLocation == null) {
loadChargers()
}
val now = Instant.now()