Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3cb5859 authored by Anton Potapov's avatar Anton Potapov
Browse files

Fix spatial audio button title

Flag: aconfig new_volume_panel TEAMFOOD
Test: manual on the phone with a compatible headset and tablet
Fixes: 330734380
Change-Id: I1927960d27b81c9ecb7c4e07b2b4dc194d029bd5
parent f58571ee
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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> =