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

Commit b6b9b29c authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

MediaRouter: set deviceType of BT routes

It wasn't set by the system route provider.

Bug: 148768562
Test: atest android.media.cts.MediaRoute2InfoTest
  && atest android.media.cts.MediaRouter2Test
  && atest android.media.cts.RouteDiscoveryPreferenceTest
  && atest android.media.cts.RoutingSessionInfoTest
  && atest mediaroutertest
  && manually check device type of bt routes

Change-Id: I6c387c0690bc6af290bc31414a7d7f049aa8177e
parent e0757c58
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -186,6 +186,7 @@ class BluetoothRouteProvider {
                .setConnectionState(MediaRoute2Info.CONNECTION_STATE_DISCONNECTED)
                .setDescription(mContext.getResources().getText(
                        R.string.bluetooth_a2dp_audio_route_name).toString())
                .setDeviceType(MediaRoute2Info.DEVICE_TYPE_BLUETOOTH)
                .build();
        newBtRoute.connectedProfiles = new SparseBooleanArray();
        return newBtRoute;