mirror of
https://github.com/home-assistant/android
synced 2024-07-22 10:54:12 +00:00
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:
parent
f89d3c7c78
commit
b947157f89
|
@ -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")
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue