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

Commit 672056fa authored by Henri Chataing's avatar Henri Chataing Committed by Android Build Coastguard Worker
Browse files

btif_a2dp: Incorrect check for A2DP Offload Start status

Bug: 350899760
Flag: EXEMPT, minor fix
Test: m com.android.btservices
(cherry picked from https://android-review.googlesource.com/q/commit:dcd2adf7f6b3de3583322b26b8af37f385ec3436)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:76dd3bec0a24833c8aa8d6264316c5f40e313342)
Merged-In: I00b09b7fe6a540a37ba721a71da090e815885c1a
Change-Id: I00b09b7fe6a540a37ba721a71da090e815885c1a
parent 622bff39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ void btif_a2dp_on_offload_started(const RawAddress& peer_addr,
  }

  if (btif_av_is_a2dp_offload_running()) {
    if (ack != BTA_AV_SUCCESS &&
    if (ack != BluetoothAudioStatus::SUCCESS &&
        btif_av_stream_started_ready(A2dpType::kSource)) {
      // Offload request will return with failure from btif_av sm if
      // suspend is triggered for remote start. Disconnect only if SoC