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

Commit 87a0bf9a authored by Cheney Ni's avatar Cheney Ni
Browse files

BluetoothAudioHAL: reset A2DP pending command while ending the session

Bug: 175425864
Tag: #compatibility
Test: Switch A2DP active device manually
Change-Id: Icf29d8e5c557c927bffe9d49188bd0cf98b07120
parent 8fc2527c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -474,6 +474,8 @@ void end_session() {
    return;
  }
  active_hal_interface->EndSession();
  static_cast<A2dpTransport*>(active_hal_interface->GetTransportInstance())
      ->ResetPendingCmd();
  static_cast<A2dpTransport*>(active_hal_interface->GetTransportInstance())
      ->ResetPresentationPosition();
}