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

Commit 308674b7 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 am: 9bdc6aa9

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



Change-Id: Iddc12be3afca09a6ce3bcccc3e302cc569a8e627
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents d8e3ef1e 9bdc6aa9
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();