Skip to content

Commit

Permalink
Update Android Auto sensor icon based on state (#4508)
Browse files Browse the repository at this point in the history
* Update AndroidAutoSensorManager.kt

Add state based icon

* Update app/src/full/java/io/homeassistant/companion/android/sensors/AndroidAutoSensorManager.kt

Co-authored-by: Joris Pelgröm <jpelgrom@users.noreply.github.com>

* Update AndroidAutoSensorManager.kt

Fixes to previous commits

* Remove newline

---------

Co-authored-by: Joris Pelgröm <jpelgrom@users.noreply.github.com>
Co-authored-by: Joris Pelgröm <joris.pelgrom@gmail.com>
  • Loading branch information
3 people committed Jul 15, 2024
1 parent 69ec799 commit d23b38a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class AndroidAutoSensorManager : SensorManager, Observer<Int> {
context,
androidAutoConnected,
connected,
androidAutoConnected.statelessIcon,
if (connected) androidAutoConnected.statelessIcon else "mdi:car-off",
mapOf(
"connection_type" to typeString
)
Expand Down

0 comments on commit d23b38a

Please sign in to comment.