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

Commit 709aca3d authored by Alex Dadukin's avatar Alex Dadukin Committed by Automerger Merge Worker
Browse files

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

parents 212a433a dfd708e5
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;