From 7661c2a8b90bee7edcf7c1279abe06ed32e22a2c Mon Sep 17 00:00:00 2001 From: Joseph Pirozzo Date: Mon, 18 Nov 2019 11:44:37 -0800 Subject: AVRCP Controller manage focus while disconnected If Audio focus is lost(or gained) while A2DP is not connected there is the possibility for states to get out of sync. Removing the check for connectivity ensures that the state can be properly managed. Bug: 144082798 Test: Disconnect BT device, lose audio focus, verify btif_a2dp_sink_set_focus_state_event state gets updated. Change-Id: If5802418f6069dbc72824745307342776175d9d8 --- btif/src/btif_a2dp_sink.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'btif') diff --git a/btif/src/btif_a2dp_sink.cc b/btif/src/btif_a2dp_sink.cc index bb1bc49c0..aa75d21d4 100644 --- a/btif/src/btif_a2dp_sink.cc +++ b/btif/src/btif_a2dp_sink.cc @@ -667,7 +667,6 @@ static void btif_a2dp_sink_set_focus_state_event( LOG_INFO(LOG_TAG, "%s: state=%d", __func__, state); LockGuard lock(g_mutex); - if (!btif_av_is_connected()) return; APPL_TRACE_DEBUG("%s: setting focus state to %d", __func__, state); btif_a2dp_sink_cb.rx_focus_state = state; if (btif_a2dp_sink_cb.rx_focus_state == BTIF_A2DP_SINK_FOCUS_NOT_GRANTED) { -- cgit v1.2.3