Bump com.google.accompanist:accompanist-themeadapter-material from 0.28.0 to 0.30.0 (#3431)

* Bump com.google.accompanist:accompanist-themeadapter-material

Bumps [com.google.accompanist:accompanist-themeadapter-material](https://github.com/google/accompanist) from 0.28.0 to 0.30.0.
- [Release notes](https://github.com/google/accompanist/releases)
- [Commits](https://github.com/google/accompanist/compare/v0.28.0...v0.30.0)

---
updated-dependencies:
- dependency-name: com.google.accompanist:accompanist-themeadapter-material
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update LiveData observer

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joris Pelgröm <joris.pelgrom@gmail.com>
This commit is contained in:
dependabot[bot] 2023-03-31 23:22:05 -04:00 committed by GitHub
parent f89d3c7c78
commit b947157f89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -202,7 +202,7 @@ dependencies {
implementation("androidx.compose.ui:ui-tooling")
implementation("androidx.activity:activity-compose:1.6.1")
implementation("androidx.navigation:navigation-compose:2.5.3")
implementation("com.google.accompanist:accompanist-themeadapter-material:0.28.0")
implementation("com.google.accompanist:accompanist-themeadapter-material:0.30.0")
implementation("com.mikepenz:iconics-core:5.4.0")
implementation("com.mikepenz:iconics-compose:5.4.0")

View file

@ -58,14 +58,14 @@ class AndroidAutoSensorManager : SensorManager, Observer<Int> {
}
}
override fun onChanged(type: Int?) {
override fun onChanged(value: Int) {
if (!isEnabled(context, androidAutoConnected)) {
CoroutineScope(Dispatchers.Main + Job()).launch {
carConnection?.type?.removeObserver(this@AndroidAutoSensorManager)
}
return
}
val (connected, typeString) = when (type) {
val (connected, typeString) = when (value) {
CarConnection.CONNECTION_TYPE_NOT_CONNECTED -> {
false to "Disconnected"
}
@ -76,7 +76,7 @@ class AndroidAutoSensorManager : SensorManager, Observer<Int> {
true to "Native"
}
else -> {
false to "Unknown($type)"
false to "Unknown($value)"
}
}
onSensorUpdated(