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

Commit 935998d8 authored by wangfukai's avatar wangfukai Committed by fukai wang
Browse files

AVRCP:Update lidx when ACP handle exist in bta_av_rc_create



Test:Pair smartphone with band and carkit, unpair band and check
Media Audio with carkit on smartphone.
Signed-off-by: default avatarwangfukai <wangfukai@huawei.com>

Change-Id: Ib913d2d52e25266e797eb896f99db593531442a7
parent 2fb23517
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -325,6 +325,7 @@ uint8_t bta_av_rc_create(tBTA_AV_CB* p_cb, uint8_t role, uint8_t shdl,
    p_rcb = bta_av_get_rcb_by_shdl(shdl);
    if (p_rcb != NULL) {
      APPL_TRACE_ERROR("%s: ACP handle exist for shdl:%d", __func__, shdl);
      p_rcb->lidx = lidx;
      return p_rcb->handle;
    }
  }