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

Commit 1ca4d392 authored by Patty Huang's avatar Patty Huang
Browse files

Fix Battery info not shown after BT off/on

Update the sink audio location after loaded from the storage

Bug: 252935428
Tag: #refactor
Test: atest BluetoothInstrumentationTests
Test: BT off/on, and check the battery information
Change-Id: I820b43acb552b776b0322112ee3070ed0930b431
parent 792bc3a9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1073,6 +1073,10 @@ class LeAudioClientImpl : public LeAudioClient {
          le_audio::types::kLeAudioDirectionSink;
    }

    callbacks_->OnSinkAudioLocationAvailable(
        leAudioDevice->address_,
        leAudioDevice->snk_audio_locations_.to_ulong());

    leAudioDevice->src_audio_locations_ = source_audio_location;
    if (source_audio_location != 0) {
      leAudioDevice->audio_directions_ |=