mirror of
https://github.com/home-assistant/android
synced 2024-07-24 03:44:23 +00:00
Reset carInfo when our session is destroyed since data will be stale (#3754)
This commit is contained in:
parent
e274b7e15e
commit
56798849fe
|
@ -120,6 +120,11 @@ class HaCarAppService : CarAppService() {
|
|||
}
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
carInfo = null
|
||||
}
|
||||
|
||||
private fun loadEntities(scope: CoroutineScope, id: Int) {
|
||||
allEntitiesJob?.cancel()
|
||||
allEntitiesJob = scope.launch {
|
||||
|
|
Loading…
Reference in a new issue