BtHelper: Do not broadcast on CONNECTING

Bug: 145575361
Test: 1. connect to the Teams meeting when BT connected
      2. switch to the earpiece
      3. switch back to BT
Change-Id: I3fba738289f6ed362e5be67bf37cd5fd4a22474e
This commit is contained in:
Myles Watson
2019-12-03 11:18:27 -08:00
parent d4e90d2e09
commit 866b1bbcd4

View File

@@ -295,6 +295,7 @@ public class BtHelper {
&& mScoAudioState != SCO_STATE_DEACTIVATE_REQ) {
mScoAudioState = SCO_STATE_ACTIVE_EXTERNAL;
}
broadcast = false;
break;
default:
// do not broadcast CONNECTING or invalid state