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

Commit a2d0a2a4 authored by Alice Kuo's avatar Alice Kuo Committed by Android (Google) Code Review
Browse files

Merge "Clear target allocation as is_initial flag as true" into tm-qpr-dev

parents 6921b94e aafe1ebb
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();