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

Commit 1560fc08 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:...

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24678569



Change-Id: I3ee8673da8ac53158b749785741451442dc4bfcc
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents f9b9ac5c 709aca3d
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;