Commit 731e92d2 authored by Mingbo Zhang's avatar Mingbo Zhang Committed by Gerrit - the friendly Code Review server
Browse files

Avrcp_ext: always clear isShoActive after a2dp becomes playing

Analysis:
1) One device is active, and a2dp is playing.
2) User sets active device to a new device, then startSHO will be
   called with PlayReq true, then isShoActive is set to true.
3) SHO is done, and a2dp becomes playing again. Because avrcp
   of the new active device is not connected, isShoActive cannot
   be cleared, which caused that all the following SHO will be
   equeued incorrectly.

Fix:
Always clear variable isShoActive after a2dp becomes playing
even though avrcp is not connected.

Change-Id: If898ab177e70533ce31f77df8437240e9a832988
CRs-Fixed: 2597340
parent 26684f13
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment