summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Anton Potapov <apotapov@google.com> 2024-03-22 11:10:22 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-03-22 11:10:22 +0000
commitca5e3d42afdf45e8947324ae7defd600a2c78ded (patch)
tree00f619b8f450c63e952121b5908d02abfa54f37d
parent1533eb8de0882b5e43c60e824a69eedc8424b597 (diff)
parenta3cb58595db6285745d1278152727abf5ee42c98 (diff)
Merge "Fix spatial audio button title" into main
-rw-r--r--packages/SystemUI/src/com/android/systemui/volume/panel/component/spatial/ui/viewmodel/SpatialAudioViewModel.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/volume/panel/component/spatial/ui/viewmodel/SpatialAudioViewModel.kt b/packages/SystemUI/src/com/android/systemui/volume/panel/component/spatial/ui/viewmodel/SpatialAudioViewModel.kt
index f260d6130c4b..ceb769ea2ef6 100644
--- a/packages/SystemUI/src/com/android/systemui/volume/panel/component/spatial/ui/viewmodel/SpatialAudioViewModel.kt
+++ b/packages/SystemUI/src/com/android/systemui/volume/panel/component/spatial/ui/viewmodel/SpatialAudioViewModel.kt
@@ -50,7 +50,11 @@ constructor(
val spatialAudioButton: StateFlow<ButtonViewModel?> =
interactor.isEnabled
- .map { it.toViewModel(true).toButtonViewModel() }
+ .map {
+ it.toViewModel(true)
+ .toButtonViewModel()
+ .copy(label = context.getString(R.string.volume_panel_spatial_audio_title))
+ }
.stateIn(scope, SharingStarted.Eagerly, null)
val isAvailable: StateFlow<Boolean> =