Merge "Remove the check condition of connect device" into rvc-dev am: c5fe7255cb am: af862b3012 am: 3bba1433a9

Change-Id: I09c9006e316682bca1a280ec82335f801844f595
This commit is contained in:
Hugh Chen
2020-05-05 08:43:50 +00:00
committed by Automerger Merge Worker

View File

@@ -476,10 +476,7 @@ public class LocalMediaManager implements BluetoothCallback {
if (connectDevice != null) {
connectDevice.setState(MediaDeviceState.STATE_CONNECTED);
}
if (connectDevice == mCurrentConnectedDevice) {
Log.d(TAG, "onConnectedDeviceChanged() this device all ready connected!");
return;
}
mCurrentConnectedDevice = connectDevice;
dispatchSelectedDeviceStateChanged(mCurrentConnectedDevice,
MediaDeviceState.STATE_CONNECTED);