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

Commit dfd708e5 authored by Alex Dadukin's avatar Alex Dadukin Committed by Android (Google) Code Review
Browse files

Merge "Fix A2DP device is not made active when connected" into udc-qpr-dev

parents 4d46e9c7 c225615f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -508,7 +508,11 @@ class LegacyBluetoothRouteController implements BluetoothRouteController {
                case BluetoothA2dp.ACTION_ACTIVE_DEVICE_CHANGED:
                    clearActiveRoutesWithType(MediaRoute2Info.TYPE_BLUETOOTH_A2DP);
                    if (device != null) {
                        addActiveRoute(mBluetoothRoutes.get(device.getAddress()));
                        if (DEBUG) {
                            Log.d(TAG, "Setting active a2dp devices. device=" + device);
                        }

                        addActiveDevices(device);
                    }
                    notifyBluetoothRoutesUpdated();
                    break;