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

Commit 9bdc6aa9 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Automerger Merge Worker
Browse files

Merge "Clear target allocation as is_initial flag as true" am: b0604987 am:...

Merge "Clear target allocation as is_initial flag as true" am: b0604987 am: e3abc296 am: 64071a46

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2226417



Change-Id: I667521851eafa9f532ddd4c6ee92ee91be2ace4e
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents b4c280cd 64071a46
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1694,6 +1694,11 @@ void LeAudioDeviceGroup::CreateStreamVectorForOffloader(uint8_t direction) {

  if (offloader_streams_target_allocation->size() == 0) {
    *is_initial = true;
  } else if (*is_initial) {
    // As multiple CISes phone call case, the target_allocation already have the
    // previous data, but the is_initial flag not be cleared. We need to clear
    // here to avoid make duplicated target allocation stream map.
    offloader_streams_target_allocation->clear();
  }

  offloader_streams_current_allocation->clear();