Revert "Revert "check car app API level before setting OnContentRefreshListener""

This reverts commit 09d6647ec0.
This commit is contained in:
johan12345
2022-10-13 21:07:31 +02:00
parent 06fe347c73
commit 19142e0b59

View File

@@ -246,7 +246,9 @@ class MapScreen(ctx: CarContext, val session: EVMapSession) :
}
.build())
.build())
setOnContentRefreshListener(this@MapScreen)
if (carContext.carAppApiLevel >= 5) {
setOnContentRefreshListener(this@MapScreen)
}
}.build()
}