Auto: make AboutScreen only accessible when parked

This commit is contained in:
johan12345
2025-12-02 17:46:13 +01:00
parent 0f24608d2a
commit d08aaa3325

View File

@@ -143,9 +143,9 @@ class SettingsScreen(ctx: CarContext, val session: EVMapSession) : Screen(ctx),
).setTint(CarColor.DEFAULT).build()
)
.setBrowsable(true)
.setOnClickListener {
.setOnClickListener(ParkedOnlyOnClickListener.create {
screenManager.push(AboutScreen(carContext, session))
}
})
.build()
)
}.build())